Created
July 20, 2015 04:17
-
-
Save Endle/0564e6ff823eb13bdcb1 to your computer and use it in GitHub Desktop.
Gist by paste.py @ 2015-07-20 12:17:13.723065
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<p>Open "myWindow" and move the new window to the top left corner of the screen:</p> | |
<button onclick="openWin()">Open "myWindow"</button> | |
<script> | |
var myw; | |
function openWin() { | |
myw=window.open("", "myWindow", "width=200, height=100"); | |
myw.document.write("<p>This is 'myWindow'</p>"); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment