Jan 16, 2002 #1 plshelpme Programmer Nov 1, 2001 27 CA and then I want a link on the popWindow to redirect the main page and close the popWindow. Any ideas?
and then I want a link on the popWindow to redirect the main page and close the popWindow. Any ideas?
Jan 16, 2002 #2 link9 Programmer Nov 28, 2000 3,387 US I could give you javascript for this: <input type=button value="Pop goes the Window" name=pop1 id=pop1 onClick="popIt();"> <script language=javascript> function popIt(){ var url = 'popUp.htm'; var x = window.open(url,'popUpWindow'); } </script> and then on the popUp.htm: <input type=button value="Close and Go to Main" name=close1 id=close1 onClick="closeIt();"> <script language=javascript> function closeIt(){ url = 'mainPage.htm'; window.opener.location = url; window.close(); } </script> Hope that helps. I realize it's not vbScript, but hey... whatever works, right? ;-) paul Upvote 0 Downvote
I could give you javascript for this: <input type=button value="Pop goes the Window" name=pop1 id=pop1 onClick="popIt();"> <script language=javascript> function popIt(){ var url = 'popUp.htm'; var x = window.open(url,'popUpWindow'); } </script> and then on the popUp.htm: <input type=button value="Close and Go to Main" name=close1 id=close1 onClick="closeIt();"> <script language=javascript> function closeIt(){ url = 'mainPage.htm'; window.opener.location = url; window.close(); } </script> Hope that helps. I realize it's not vbScript, but hey... whatever works, right? ;-) paul