How do I use JavaScript to locate X-Y coordinate in the browser?

I tried to do this, when the user scrolls down the page, clicks on the link, does whatever they need to do, and then returns to the page with the link, they are in the same (xy) position Their previous browser. How do I do it?

I am a newbie to DOM, so I don’t know how to do this.

Target browsers: IE6/7/8, Firefox 2/3, Opera ,Safari

Add: I am using a program called JQuery to help me learn

To get the xy position of the position where the user clicked on the page, use the following jQuery code:








0, 0



Click me anywhere!


I tried to do this when the user is down Scroll the page, click on the link, do whatever they need to do, and then go back to the page with the link, they are in the same (xy) location in their previous browser. How can I do it?

I am a newbie to DOM, so I don’t know how to do this.

Target browsers: IE6/7/8, Firefox 2/3, Opera ,Safari

Supplement: I am using a program called JQuery to help me learn

To get users to click on the page The position of the xy position, please use the following jQuery code:








0, 0
< /h2>

Click me anywhere!


Leave a Comment

Your email address will not be published.