Source code
Revision control
Copy as Markdown
Other Tools
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>windowOpen</title>
</head>
<body>
<h1 id="content">Window open test</h1>
<a href="tab2.html" target="_blank" id="targetBlank"
>Open link in new window</a
>
<button onclick="window.open('tab3.html')" id="windowOpen">
Open window with script
</button>
</body>
</html>