Created
August 14, 2012 18:48
-
-
Save dave547/3351638 to your computer and use it in GitHub Desktop.
JAVASCRIPT: popup window
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
<script language="javascript" type="text/javascript"> | |
<!-- | |
function popitup(url) { | |
newwindow=window.open(url,'name','height=200,width=150'); | |
if (window.focus) {newwindow.focus()} | |
return false; | |
} | |
// --> | |
</script> | |
/*********************** link *********************/ | |
<a href="popupex.html" onclick="return popitup('popupex.html')">Link to popup</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment