Window.open 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>
</div>

/* js for popup*/

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

Entry filed under: Javascript. Tags: .

Transparent Images Search & Replace in javascript

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

The firsts lights

Lago di Braies

Survivor Mode

More Photos

Blog Stats

  • 705,777 hits

%d bloggers like this: