<script>
function openNew() {
var w = window.open();
}
</script>
<body>
<button onclick="openNew()">click me</button>
</body>
<script>
function openNew() {
var w = window.open();
}
</script>
<body>
<button onclick="openNew()">click me</button>
</body>