<button id="button">CLICK</button> <script> button.onclick = function() { var win = window.open(); win.alert('HELLO!') }; </script>