Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>win.open() test</title>
</head>
<body>
    <button onclick="testWinOpen('https://blog.darkthread.net')">
        Test window.open()
    </button>
    <script>
        function testWinOpen(url) {
            window.open(url, '_blank', 'popup=yes,' + 
                ',top=' + screen.availTop +
                ',left=' + screen.availLeft +
                ',width=' + screen.availWidth +
                ',height=' + screen.availHeight);
        }
    </script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
darkthreadpro
0viewers