Skip to content

Instantly share code, notes, and snippets.

@Endle
Created July 20, 2015 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Endle/0564e6ff823eb13bdcb1 to your computer and use it in GitHub Desktop.
Save Endle/0564e6ff823eb13bdcb1 to your computer and use it in GitHub Desktop.
Gist by paste.py @ 2015-07-20 12:17:13.723065
<!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