Preserved Topic: reloading window in jscript |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: New York City |
posted 12-31-2001 04:20
I am curious. Is there javascript a command to refresh a window? I cannot find it in the books I have. I know onLoad is used to detect after a browser is loaded. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 12-31-2001 04:42
the location object (not to be confused with document.location, which is a similar but different object) lets you mess around with the browser's current URL. Setting location.href = "newurl.html" simulates the user clicking on a link for "newurl.html", i believe. It has other properties that are helpful in different ways. In this case, you want the reload() method: |
Bipolar (III) Inmate From: New York City |
posted 12-31-2001 14:28
thanks Slime. |