View Full Version : <noscript> popups

03-17-2005, 11:34 AM
Is there any way to use a popup if js is turned on but just open in a new page with target = _blank if js is turned off?

EDIT: NM found the answer: for anyone who might be wondering:-

the key was to add return false; to the on_click popup function

<a href = "images/datasummary_big.gif" target = "_blank" onClick="MM_openBrWindow('images/datasummary_big.gif','','scrollbars=no,width=700,height=710'); return false;" >

the return false prevents the normal link command from executing

03-17-2005, 02:09 PM
yes it does but return false is javascript, so if javascript is turned off it will open in a new window, but your link is setup a bit strange IE may read it but some other browsers may not, keep your quotes and attributes close together, no need for extra spacing

<a href="images/datasummary_big.gif" target="_blank" onClick="MM_openBrWindow('images/datasummary_big.gif','','scrollbars=no,width=700,height=710');return false">Open Window</a>

03-17-2005, 02:42 PM
works fine in IE, opera and Firefox