Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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!

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

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

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

![]() |
![]() |
![]() |

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