Link to home
Start Free TrialLog in
Avatar of jason559
jason559

asked on

Pop up when clicking enter link

I'm looking to create some sort of "dual" link.  It will open a pop up window and then move the user onto the next site page.  For an example you could look at travelocity.com and enter information and choose "search flights".  It opens a pop-under that avoids the IE and Mozilla/Firefox pop-up blockers.  I want to do the same exact thing, except a pop-up instead of a pop-under.

For a futher description I have my homepage (index.html) and I want to have "enter" and "exit" text links.  On the "enter" link I would like a coding of some sort that will open a pop-up when clicked along with moving to the second site page (index2.html).

Thanks
Avatar of Zyloch
Zyloch
Flag of United States of America image

Hi jason559,

I don't know if you can thwart the popup blockers, but the Javascript you want is:

<a href="index2.html" onclick="window.open('somepage.html');">Enter</a>

Regards,
Zyloch
Avatar of jason559
jason559

ASKER

Any way to give it window size and to remove the URL (top) browser area so it's just the window and status bar (which can't be removed with the latest IE) ?
ASKER CERTIFIED SOLUTION
Avatar of Zyloch
Zyloch
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
worked great! Thanks!
Zyloch,
Is there anyway you can answer this for me?

I have a popup window that is opened on two seperate pages but I don't want them to overlap each other.  Is there anyway to make the second page refresh the existing popup without opening it again?
It's the same webpage.
I'm afraid I don't see a way that's possible, unless you use iframes. Have your first page content in an iframe and then call the open window from the parent.