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;