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

Q1608 From a popup window how can I alter the location of the frame that opened the popup window, plus the location of another sibling frame, and then close the popup?

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

Q1608 From a popup window how can I alter the location of the frame that opened the popup window, plus the location of another sibling frame, and then close the popup?

With a hypertext link:

<a href="javascript:;" onClick="
  opener.parent.siblingframe.location.href = 'newpage1.html';
  opener.location.href = 'newpage2.html';
  this.close();
  return false;
"&g;Click to change</a&g;

With a form button:

<form&g;
<input type="button" onClick="
  opener.parent.siblingframe.location.href = 'newpage1.html';
  opener.location.href = 'newpage2.html';
  this.close();
" value="Click to change"&g;
</form&g;

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.