PopItUp window maker





0
Date Submitted Mon. Nov. 6th, 2006 9:21 AM
Revision 1 of 1
Scripter Casper42
Tags Popup | utility | Window
Comments 0 comments
This function pops open a new window - it bypasses security and most pop-up stoppers in IE and FF. This is used by the CreateUtilityLinks snippet.

function popItUp(url,name) {
var newwindow = '';
        var date = new Date();
        var timestamp = Date.parse(date);
                newwindow=window.open(url,name + timestamp,'location=' + url + ',height=500,width=400,resize=true,resizable=yes,scrollbars=yes');

        if (window.focus) {newwindow.focus()}
        return false;
}
 

Jeremy Edmiston

Comments

There are currently no comments for this snippet.

Voting

Votes Up


Syntax Master dannyboy

Votes Down


Scripter ctiggerf