in js when popup is blocked

July 31, 2007 at 11:01 am Leave a comment

Hey u guys might be wondering what if js is blocked in a web-browser Use below code to open a new window using javascript when popup is blocked or js is degraded or js is blocked.

/* html code goes here */

<div id=”link”>
<a href=”popup.html” onclick=”fnNewWin(); return false;”>link to popup</a>

/* js for popup*/

function fnNewWin(){‘popup.html’,”,’scrollbars=no’,’resizable=no’,’addressbar=no’ );


Entry filed under: Javascript.

Transparent Images Search & Replace in javascript

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Flickr Photos

Blog Stats

  • 720,244 hits

%d bloggers like this: