You are here: irt.org | FAQ | JavaScript | Window | Q1444 [ previous next ]
Try:
<script language="JavaScript"><!-- function promptIt() { WinId = window.open('questionpage.html','newwin','width=300,height=300,status'); if (!WinId.opener) WinId.opener = self; } //--></script>
and in questionpage.html (that page can also be written dynamically, but will complicate things a little) have:
<center> <form> Do you know Aaron? <br> <input type="button" value="Yes" onClick="opener.location='yespage.html'; self.close()"> <input type="button" value="No" onClick="opener.location='nopage.html'; self.close()"> <input type="button" value="Cancel" onClick="self.close()"> </center>