Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出现弹出窗口然后在加载后立即退出的代码是什么?我需要向其中添加转换代码以跟踪转换,但不想要感谢页面或重定向。
此外,无论如何隐藏弹出窗口,使其变小,仅持续 2 秒,或隐藏在浏览器后面?
我想把它放在表单的 onsubmit 函数上。
可能就是你要找的东西
<div id="popupId"> code for your popup </div> setTimeout(function (){document.getElementById('popupId').style.display='none';},2000);
谢谢