Created
December 1, 2014 17:41
-
-
Save puginabox/f320b04a2f0924926095 to your computer and use it in GitHub Desktop.
simple vanilla js popup
This file contains 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
<head> | |
<script> | |
function poponload() { | |
testwindow = window.open("", | |
"mywindow1", "location=1,status=1,scrollbars=1,width=200,height=200"); | |
testwindow.moveTo(50%, 50%); | |
} | |
</script> | |
</head> | |
<body> | |
<a href="javascript:void(0)" onclick="javascript: poponload()"> | |
Popped<img src="./sssss_files/x.gif" style="position: absolute; top: -9999px; left: -9999px;"> | |
</a> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment