Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
<head>
<script type='text/javascript'>
window.onload = function() {
    setTimeout(function(){
        openLinkInWindow("http://www.google.com/");
    },2000)
}
    function openLinkInWindow(url) {
        var anchor = document.createElement("a");
        anchor.href = url;
        document.body.appendChild(anchor);
        var evt = document.createEvent("MouseEvents");
        evt.initMouseEvent("click", true, true, window,
        0, 0, 0, 0, 0, false, false, true, false, 0, null);
        anchor.dispatchEvent(evt);
        anchor.parentNode.removeChild(anchor);
    }
</script>
</head>
<body></body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers