Closed Thread Icon

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

 
u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 12-29-2001 22:30

<a href="javascript:location.reload()">Reload</a>

This button will reload the actual window. How can i reload a frame which is located in another window?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 12-29-2001 23:49

You merely have to access the location object of *that* window. If it's a sub frame, you just say frame_name.location.reload(). If it's a sibling frame, you say parent.frame_name.location.reload(). If it's harder to get to, you can navigate to it from the top-level of the window: top.some_top_level_frame.one_of_its_child_frames.frame_name.location.reload(). If it's in an entirely different window altogether, you use window_name.location.reload().

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 12-31-2001 11:13

Thanks, that helped.

« BackwardsOnwards »

Show Forum Drop Down Menu