Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Test Page</title>
<style>
  body {
    font-family: sans-serif;
  }
</style>
</head> 
<body>
  <p><a href="#" onclick="javascript:closeOnLoad('http://www.purevid.com/');">Click to open popup</a>; it will close automatically after five seconds.</p>
</body>
</html>
 
function closeOnLoad(myLink)
{
  var newWindow = window.open(myLink, "connectWindow", "width=600,height=400,scrollbars=yes");
  setTimeout(
             function()
             {
               newWindow.close();
             },
            1000
            );
  return false;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers