Forum Moderators: open

Message Too Old, No Replies

Question about pop windows and redirects of parent windows.

         

colorspots

11:27 pm on Nov 5, 2003 (gmt 0)

10+ Year Member



[webmasterworld.com...]

I found this old thread but I can't post a follow up question to it because its been closed.
its in regards to this code by 4serendipity

<a href="redwidget.htm" onclick="javascript:opener.location.href='http://www.widgets.com/redwidget.htm'; return false">Red Widgets</a> 

Is there a way to have the parent window become the focus and the popup go behind? If yes could you please post the code.

Thanks
Colorspots

Reflection

11:45 pm on Nov 5, 2003 (gmt 0)

10+ Year Member



You might want to try the javascipt forum, probably get a good answer there.

tedster

12:56 am on Nov 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Good idea, Reflection. I've moved the post.

The way I handle this is to place a short javascript in the body tag of the redwidget.htm document. Like this:

<body onLoad="self.focus()">