Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Complex problem Re: Refreshing a window


Message #1 by Chetan Kudalkar <chetan_at_work@y...> on Thu, 4 Oct 2001 07:11:15 -0700 (PDT)
Their equivalents in Netscape 4 & 6 are window.pageXOffset and
window.pageYOffset.

document.body.scrollTop and document.body.scrollLeft is writeable as well, 
but window.pageXOffset and window.pageYOffset are read-only.

But the method window.scroll(x, y); is cross-browser!


/Robert


-----Original Message-----
From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...] 
Sent: den 4 oktober 2001 17:22
To: javascript
Subject: [javascript] RE: Complex problem Re: Refreshing a window


are those readonly properties or can they be set? Furthermore, do they work
in browsers other than IE?

-----Original Message-----
From: Nyman, Robert [mailto:Robert.Nyman@i...]
Sent: 04 October 2001 16:14
To: javascript
Subject: [javascript] RE: Complex problem Re: Refreshing a window


First of all, regarding:

> there is no property that tells the browser how far 
> down the page has scrolled.

Yes, there is. document.body.scrollTop and document.body.scrollLeft. 
See
http://www.msdn.microsoft.com/workshop/author/dhtml/reference/properties/scr
ollTop.asp (might wrap...)


Regarding location and refreshing:
A clue might be in  location.reload(false) = Reloads the page from the
browser cache
   location.reload(false) = Reloads the page from the
server


/Robert



-----Original Message-----
From: George Smyth [mailto:george.smyth@U...] 
Sent: den 4 oktober 2001 17:03
To: javascript
Subject: [javascript] RE: Complex problem Re: Refreshing a window


No, reloading is like clicking the Go button, whereas refreshing is like
clicking the refresh button.  Try each while scrolled down a Web page and
you'll see that the former will place you at the top, whereas the latter
will return you to your previous position.  I don't believe that refreshing
a page can be done through JavaScript, though I am following the thread in
case someone comes up with a way to do it.

Cheers -

George L Smyth

  Return to Index