I want to click on the page a window opens and I am using this code
<script>
document.onclick = function( e ){
myFunction();
}
function myFunction() {
window.open("http://google.com.br", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=1, left=1, width=1, height=1");
}
</script>
But it opens every time that you clicked on the window and wanted it to run only once, and then it would only run if the window was reloaded