Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop Up Link Back To Original Window...

Status
Not open for further replies.

powderkeg1

Technical User
Apr 14, 2001
58
JP
Hello All,

can I have a link from in a pop up that goes back to the original window
with the new page as well..? What I want, is to have an order form link in
the pop up that opens the order form page from within the original window
where I clicked for the pop up..geez, hope that makes sense. Is there a
jscript that does this.? Any help/advice greatly appreciated in advance.
Cheers all.

powderkeg...

 
hi
i think window.opener will stay untill you would close that window, no matter what document (page) is in it Victor
 
Hi powderkeg,

Put this code in your popup file:
(if you leave the code "window.close();" the popupwindow will not close)

<script language=&quot;javascript&quot;>
function openLocation(url)
{
window.opener.location=url;
window.close();
}
</script>

<form METHOD=&quot;POST&quot; action=&quot;javascript:eek:penLocation('thepageyouwant.html');&quot;>

Hope this helps,
Erik
 
hi, i have an doubt in javascript that i have an popmenu in this menu i have add,edit and delete if i select the add then it will call add.jsp. Its calling but its calling in the same frame. i want to explicitly refer the target frame how can i do that. here with i have given the code how can i change pls do help i'm in urgent
with regards
 
Thanx ErikL..worked like a charm. cheers all

powderkeg...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top