hi i am creating a page to open pop up i want to open 5 pop up on a click in a loop and automatically close all the pop up after a interval of time suggest your solution
1 条回答
网友1解答:
<scripttype="text/javascript">var win = window.open("http://www.google.com", "mywindow");
var interval;
function closePopup()
{
win.close();
clearInterval(interval);
}
interval=setInterval(closePopup,10000);
</script>
我认为这是一项常见的任务.还没谷歌吗?
I think this is a common task. Haven''t googled yet?