I have this code, which means that when you click on any part of the page, a window opens with another page, for example advertising, but always, I want you to do it when you enter, and for example after 2 minutes that is on the page without clicking.
<script>
function PopUP(){
window.open('https://publicidad.com','_blank'); //abrir nueva ventana
document.focus(); //poner el foco en la ventana actual
}
</script>