我需要在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>
解决方法
使用setTimeout,例如:
var win = window.open("http://www.google.com",top=330'); setTimeout(function () { win.close();},3000);