Find[Set] x and y Co-ordinate,
#javascript code
#javascript code
Scroll Postion
var VScrollPos= document.body.scrollTop;//vertically
var HScrollPos= document.body.scrollLeft;//horizontally
Browser width and height
var wdth= window.screen.width;
var hght= window.screen.height;
Mouse Postion
var ev=window.event;
var x=ev.clientX;
var y=ev.clientY;
Body width and height
var bHght= document.body.clientHeight;
var bWdth= document.body.clientWidth;
Set Scroll at stating position
window.scrollTo(0,0);
No comments:
Post a Comment