VolkNet
02-07-2005, 07:32 PM
Hey i have a sales presentation type thing im making for a client. I want it to popup in a popup when clients click on a link. I've been having troubles with popup blockers.
Is there a code someone can give me that the popup blockers (like the one in SP2 and google bar) wont block WHEN activated by a user action. Thanks.
saghir69
02-08-2005, 12:05 PM
a good popup blocker should not block such popups.
VolkNet
02-08-2005, 07:41 PM
I came across a script that eliminates my problem. Basically if the popup isn't opened then the file is opened in the same window. :)
the_pm
02-08-2005, 10:48 PM
Good JavaScript writing practices should ensure that anyway.
Here's a little JavaScript/DOM idea that might be the answer to your question: http://www.plhmedia.com/ex/popthis.html
Just move it out of its dual function routine into a simple onclick event handler, and use a URL to the item being popped up as a backup mechanism (along with return false in the event handler to prevent both from happening at the same time).