2
I’m hoping that by clicking on the page a window opens and I’m using this code
<script>
document.onclick = function( e ){
myFunction();
}
function myFunction() {
window.open("http://google.com", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=1, left=1, width=1, height=1");
}
</script>
But it opens every time and clicked on the window wanted it to run a single time and then comes back to run only if the window was reloaded