我目前将其设置为 onLoad 主体,但我更喜欢使用任何其他可以完成工作的函数来延迟 15 秒。
<body onLoad="popIt=window.open('http://www.example.com/insight',
'popIt', 'toolbar=0, location=0, directories=0, menuBar=0, scrollbars=1,
resizable=1, width=900, height=900, left=500, top=500');">
在 15 秒延迟时执行弹出窗口的最佳方法是什么? 谢谢您
最佳答案
有这样的事吗?
<body onLoad="window.setTimeout(function() {popIt=window.open('url');}, 15000);">
关于javascript - 延迟 10-15 秒触发弹出窗口的最佳方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25276998/