Click to See Complete Forum and Search --> : open a webpage in a new window


Storey
07-22-2003, 01:51 PM
I've a navigation pop-up window on my website which contains the following
if (page_num=="01")
document.location="news03.htm";

However when page_num does equal "01" then news03.htm opens in my pop-up window. My problem is I want news03 to be opened in my main.htm NOT in the pop-up window. Do I need to pass another variable to document.location in order to open news03.htm in my main.htm ???

see www.st-aidansgaa.com for my problem :-)

AdamGundry
07-22-2003, 03:19 PM
Try this instead: window.opener.document.location="news03.htm"

Adam

P.S. According to the Web Content Accessibility Guidelines, you should not be using popups.

Storey
07-23-2003, 04:09 AM
Thanks Adam. The Pop-Up was just a temp feature. I'll take that out now.

Cheers