Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1249 How can you refresh a frameset from a child window created from one of the frames and subsequently close the child window by way of a button?

irt.org | Knowledge Base | JavaScript | Frame | Q1249 [ previous next ]

Q1249 How can you refresh a frameset from a child window created from one of the frames and subsequently close the child window by way of a button?

Refresh the frame (or page) that opened the window:

<form>
<input type="button" onClick="opener.location.reload(); self.close()" value="Refresh and close">
</form>

Refresh another frame:

<form>
<input type="button" onClick="opener.parent.framename.location.reload(); self.close()" value="Refresh and close">
</form>

Refresh the frameset:

<form>
<input type="button" onClick="opener.top.location.reload(); self.close()" value="Refresh and close">
</form>

Use reload(1) to force reload from server.

Feedback on 'Q1249 How can you refresh a frameset from a child window created from one of the frames and subsequently close the child window by way of a button?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.