I have a client that needs something along this line:
From the main browser page, a link that opens a popup type window, which has links that would target back to the main window. I have the popup window already done and working. My dilema is how to name the calling window so I can target it from the popup window.
Can javascript do an onload to set the window name?? I tired that but got nowhere.
Any help/snippet would be appreciated.
Terry
Returning to a calling page from popup window
Moderator: General Moderators
Perfect.... 
it doesn't matter whatever you user as link.... whatever you are outputting of :
will output something like this
it doesn't matter whatever you user as link.... whatever you are outputting of :
Code: Select all
<a href="javascript:window.opener.location='<? echo("agent_profile.php?agent_id=$AgentID&u=$myID"); ?>'">Agent Profile</a>enjoy!!<a href="javascript:window.opener.location='agent_profile.php?agent_id=igoy&u=343'">Agent Profile</a>