Skip to content

Instantly share code, notes, and snippets.

@AnimeshShaw
Created October 2, 2013 04:07
Show Gist options
  • Save AnimeshShaw/6789026 to your computer and use it in GitHub Desktop.
Save AnimeshShaw/6789026 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
</head>
<body>
<p>Popup Window:</p>
<p><a href="JavaScript:newPopup('http://techmapia.com');">Get your HTML codes in a popup!</a></p>
<div class="more-info">
<p>More info: <a href="/javascript/popup_windows.cfm">Popup Windows</a></p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment