I wish to have a link which opens popup when clicked however I wish it to open a page in a new window if the user doesn\'t have JS enabled.
The following doesn\'t seem t
In order to make this functionality more browser-compatible, you need to pass the event object to the click handler, then call e.preventDefault();.
click
e.preventDefault();
example:
$( '#button' ).click( function( e ) { //... your code... e.preventDefault(); return false; } );