Last active
August 29, 2015 14:05
-
-
Save jasdeepkhalsa/1289f0a2a0302c3eb68a to your computer and use it in GitHub Desktop.
Popup URL - For opening a new window cross-browser
This file contains hidden or 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
| function popupURL(url, title, width, height) { | |
| var url = url, | |
| title = title || 'Popup', | |
| width = width || 650, | |
| height = height || 650, | |
| popup = 'toolbar=0,status=0,width='+width+',height='+height; | |
| window.open(url, title, popup); | |
| }; | |
| // popupURL('http://www.google.com'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment