我需要在 3 秒后关闭以下弹出窗口。我该怎么做。
<map id="ImgMap0" name="ImgMap0">
<area alt="" coords="127, 22, 20" alt="" title="click here" href="includes/popup1.htm" onclick="javascript:void window.open
('includes/popup1.htm','1366002941508','width=500,height=200,left=375,top=330');return false;" shape="circle" />
</map></p>
原文由 user964377 发布,翻译遵循 CC BY-SA 4.0 许可协议
使用 setTimeout,例如:
示例小提琴:http: //jsfiddle.net/N5rve/