将Javascript Window.open函数延迟2秒
当用户将鼠标悬停在链接上时,我需要将弹出此窗口的时间延迟2秒将Javascript Window.open函数延迟2秒,javascript,Javascript,当用户将鼠标悬停在链接上时,我需要将弹出此窗口的时间延迟2秒 function open_window() { new_window = open("http://www.mysite.com","site","width=610,height=510,left=600,top=400"); } <a href="#" onMouseOver="javascript:open_window();" >Popup</a> 函数打开_窗口() { 新窗口=打开(“ht
function open_window()
{
new_window = open("http://www.mysite.com","site","width=610,height=510,left=600,top=400");
}
<a href="#" onMouseOver="javascript:open_window();" >Popup</a>
函数打开_窗口()
{
新窗口=打开(“http://www.mysite.com“站点”,“宽度=610,高度=510,左侧=600,顶部=400”);
}
<a href="#" onMouseOver="setTimeout(open_window,2000);" >Popup</a>