tags:

views:

135

answers:

3

iam trying to open a child window with disabld toolbar in IE. Everytime i have to set the pop up blocker as off and ten work on it. can someone help with a piece of code to disable the pop up blocker using javascript for all IE versions.

+2  A: 

The best way is to ask the user nicely to turn the blocker off, because you really need pop-ups. Some apps use this approach, but it is certainly not suitable for a public web service.

Krab
how to give an alert to the user to turn off the pop up blocker by checkn whether the child window s opened or not??
+1  A: 

Instead of using javascript, first try using a simple target="_blank". Popup blockers will tend to disable JS rather than simple html.

a href="#" target="_blank"

If that doesn't work, you might want to consider something like the colorbox - http://colorpowered.com/colorbox/

This works in the same way as a popup, but doesn't bring up a new window.

... (You could just ask people told press ctrl+click when they click the link to your pop-up - that's the generic 'temporarily allow pop-ups' shortcut)

Tim
+1  A: 

Rather than showing a traditional popup, consider showing an in-page popup instead. For example:

However, make sure you have a good reason to show the popup, using one to show ads will probably just annoy users.

Simon Brown