After clicking the return button, the window pops up to close
P粉509383150
2023-08-29 15:50:07
<p>I'm trying to implement a feature where if a popup opens and the user cancels it and then presses the return key, it should not open the popup again but should go back to the previous page! </p>
<p></p>
<pre class="brush:php;toolbar:false;"><script>
window.onload = function() {
setTimeout(function() {
window.open( "#popup_flight_travlDil3" ,"_self")
}, 1000);
}
</script></pre></p>
You can use sessionStorage