Created
November 13, 2012 21:17
-
-
Save tedw/4068451 to your computer and use it in GitHub Desktop.
Popup Window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Popup Window */ | |
var openPopup = function( url, h, w ) { | |
if ( url ) { | |
if ( h && w ) { | |
window.open(url, '_blank', 'menubar=no,status=no,titlebar=no,toolbar=no,height=' + h + ',width=' + w); | |
} | |
else { | |
window.open(url, '_blank'); | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment