Skip to content

Instantly share code, notes, and snippets.

@dave547
Created August 14, 2012 18:48
Show Gist options
  • Save dave547/3351638 to your computer and use it in GitHub Desktop.
Save dave547/3351638 to your computer and use it in GitHub Desktop.
JAVASCRIPT: popup window
<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