This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes reload() method for location object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "reload() method for location object" Watch "reload() method for location object" New topic
Author

reload() method for location object

Rudy Rusli
Ranch Hand

Joined: Jun 01, 2006
Posts: 114
Hello,

I use reload() method for location object and I did something like this:
window.opener.location.reload();

The problem is my page is really long and when I do the reload it will bring user back to the top of the page. Is there any way the reload will not bring the user back to the top?

Thanks in advance for the help.
~ Rudy ~
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You would have to find a JavaScript code that will remember the user's scroll position on the page. Only real way around that issue other than looking into Ajax.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reload() method for location object