Reload without moving to the top of the page

M

Martin RAYROLE

Hi folks,

Does somebody know how to reload a page without moving to the top of the
page ?

I have tried the two following commands :
1) window.location=document.location;
2) location.reload();
but, each time, the scrollbar is moved to the top of the page.

Thanks a lot for your help
M@rtin
 
M

Martin RAYROLE

Thanks a lot Jim,

I use it with "window.pageYOffset" or "document.body.scrollTop" (according to
the browser) to store the current scroll position ... and it works well !

Have a good day
Martin
 
M

Michael Winter

on 12/11/2003:
Thanks a lot Jim,

I use it with "window.pageYOffset" or "document.body.scrollTop" (according to
the browser) to store the current scroll position ... and it works well !

Have a good day
Martin

What browser(s) have you tested this with? The window.page?Offset
properties return 'undefined' in IE 6.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top