aspose file tools
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 Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "reload() method for location object" Watch "reload() method for location object" New topic

reload() method for location object

Rudy Rusli
Ranch Hand

Joined: Jun 01, 2006
Posts: 114

I use reload() method for location object and I did something like this:

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

Joined: Nov 08, 2001
Posts: 15383
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.

I agree. Here's the link:
subject: reload() method for location object