Closed Thread Icon

Preserved Topic: reloading window in jscript (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8008" title="Pages that link to Preserved Topic: reloading window in jscript (Page 1 of 1)" rel="nofollow" >Preserved Topic: reloading window in jscript <span class="small">(Page 1 of 1)</span>\

 
CRO8
Bipolar (III) Inmate

From: New York City
Insane since: Jul 2000

posted 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.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted 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:

location.reload();

See also http://www.ozoneasylum.com/Forum2/HTML/001286.html

CRO8
Bipolar (III) Inmate

From: New York City
Insane since: Jul 2000

posted posted 12-31-2001 14:28

thanks Slime.

« BackwardsOnwards »

Show Forum Drop Down Menu