Skip to content

Instantly share code, notes, and snippets.

@tedw
Created November 13, 2012 21:17
Show Gist options
  • Save tedw/4068451 to your computer and use it in GitHub Desktop.
Save tedw/4068451 to your computer and use it in GitHub Desktop.
Popup Window
/* 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