Forum Moderators: open

Message Too Old, No Replies

popup question

how to "a href" link to main page

         

backinblack

10:29 pm on Nov 7, 2003 (gmt 0)

10+ Year Member



how do i make it possible to click on a link on a popup but have the link come up on the main page instead of on the popup?

korkus2000

10:42 pm on Nov 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



window.opener.href="page.htm";

The opener references the window that opened the popup.

backinblack

11:00 pm on Nov 7, 2003 (gmt 0)

10+ Year Member



where do i put that code?

hey korkus 2000, i sent you a sticky mail. because i'm not sure how i'm supposed to respond to a response...

korkus2000

12:31 am on Nov 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In the event you want it to fire on. Like onLoad in the body tag or in a link like

<a href="javascript:window.opener.href='page.htm'">open page in parent</a>

And you responded fine. Welcome to the board!