<input class='result' value='' />
var result;
document.addEventListener('mousemove', function (event) {
result = result || document.querySelector('.result');
result.value = event.clientX + ':' + event.clientY;
}, false);
<!DOCTYPE html>
<!--[if IE 7]> <html class="lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]> <html class="lt-ie10"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
var isIE = /*@cc_on!@*/false;
var top = 0;
var scr = setInterval(function () {
top += 5;
window.scrollTo(0, top);
if (top > 1000) {
clearInterval(scr);
}
}, 15);