Skip to content

Instantly share code, notes, and snippets.

@calvinmetcalf
Last active September 8, 2015 23:55
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 calvinmetcalf/f29eae737d52ae8fd54a to your computer and use it in GitHub Desktop.
Save calvinmetcalf/f29eae737d52ae8fd54a to your computer and use it in GitHub Desktop.
<html>
<head>
<meta charSet="utf-8" />
<title>title</title>
<meta name="viewport" content="width=device-width, user-scalable=no" />
</head>
<body>
</body>
<script>
var called = false;
setTimeout(function (){
console.log('should be true', called);
});
console.log('opening');
window.open('http://example.com/some/url', 'title', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=100, height=200, top=20, left=20');
console.log('opened');
called = true;
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment