HighDots Forums  

Re: How do I work around anti-pop-up software?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: How do I work around anti-pop-up software? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
darrel
 
Posts: n/a

Default Re: How do I work around anti-pop-up software? - 07-16-2003 , 04:33 PM






Quote:
What I'm looking for is some code that is immune to pop-up window
blockers. Anyone know of a good workaround?

Well, first of all, you should rarely, if ever need to make a pop-up. Use
them only with really, really good reasons.

Otherwise, simply use an accessible javascript link:

<a href="page.html" onClick="window.open('page.html', 'windowname',
'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,r
esizable=yes,copyhistory=no,width=300,height=290') ;return false;">Text
Link</a>

So, even with pop-up blocking, the page will load, since you still have an
attribute in the HREF. As a bonuse, this link will work for those that
prefer to pop-up links in a new window themselves, or open a link a new tab
if using a tabbed browser.

-Darrel




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.