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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

From a pop-up screen back to my main website

Status
Not open for further replies.

Smarty

Programmer
Apr 12, 2001
191
BE
Hey,

I have a website, and in the main page (the site is without frames) i call a pop-up screen. In that pop-up screen, there is a link to another page. Is it possible to open the link in my main page and not open a new window or get it in the small pop-up screen?

Thanx,

smarty
 
Hi Smarty,

I think you mean this:

Put this javascript-code in your pop-up page like:
<script language=&quot;javascript&quot;>
function openLocation(url)
{
window.opener.location=url;
window.close();
}
</script>

and call this function in your link:

<a href=&quot;javascript:eek:penLocation('ThatAnotherPage.html');&quot;>

Hope this helps,
Erik

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top