Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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?

You are here: irt.org | FAQ | JavaScript | Frame | Q1608 [ previous next ]

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;

©2018 Martin Webb