Computing.Net > Forums > Web Development > Bypass Pop-up blocker

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Bypass Pop-up blocker

Reply to Message Icon

Name: imbeliever
Date: January 17, 2006 at 02:29:20 Pacific
OS: Windows XP
CPU/Ram: P4
Comment:

Hi,

can anyone please suggest me how can i open a pop-up window through javascript inspite of "Pop-up" blocking software ON?

I have been trying several things like writing inline statements, function etc. but its not solving the purpose.

I would be grateful if someone could help...

thanks in advance!



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: January 17, 2006 at 06:50:17 Pacific
Reply:

Well that would defeat the purpose of having a pop-up blocker. Any "trick" that might work now would be considered a hole in that security and would be patched anyway. And if you were to take advantage of any loophole, your visitors would most likely not be appreciative of it.

If you need to have pop-ups enabled on your site, your best bet is to do a test to see if a ppop-up blocker is enabled. If so, display an alert that it appears they have a pop-up blocker enaled and that it needs to be turned off for your site.

You can test for a pop-up blocker by using javascript to attempt to open a window with a specific name. Then see if that window exists. If not, display the warning. If it does, close the window.

Michael J


0

Response Number 2
Name: imbeliever
Date: January 18, 2006 at 05:46:50 Pacific
Reply:


Thanks michael,

I am appreciative of your efforts to reply. But i'd like you to see http://www.godolphin.com

In this site, when u will click the "seven stars" link (in the middle of the page) it opens a pop-up window inspite of the pop-up blocker being ON.

My intention is noble ... and i want to open the rest of the site in the pop-up window.

would be great if u can help about that .
thnx


0

Response Number 3
Name: Michael J (by mjdamato)
Date: January 18, 2006 at 06:42:10 Pacific
Reply:

That is NOT a pop-up. A pop-up (or under) is a secondary window that opens without any direct action from the user. By clicking a link to open another window the user is requesting the page to open.

To have a link open in another window you just need to include the TARGET attribute within the link tag. Do a google search for an HTML reference page for the possible values. Here's an exacmple of it's use:

< a href="something.htm" target="_blank" >this is a link< /a >

Michael J


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Bypass Pop-up blocker

Determine if Pop-up was blocked www.computing.net/answers/webdevel/determine-if-popup-was-blocked/3839.html

Pop-Up Ads www.computing.net/answers/webdevel/popup-ads/2190.html

java script pop up www.computing.net/answers/webdevel/java-script-pop-up/1975.html