var opener = window.open("http://www.sina.com"); opener.close(); 试试看看
可以用ajax请求那个地址,得到返回的html后,在你的网页中把它展示出来。想做什么你说了算。
var sub_window=window.open(); window.setTimeout("sub_sindow.close()",2000); // 2秒后关闭
unfortunately,the sub_window in the main window is destoryed when the new page loaded,however,if you write that below:var sub_window=window.open('http://www.baidu.com'); window.setTimeout("sub_sindow.close()",2000); // 2秒后关闭it can be ok.clear?
<script language=javascript>
function closewin()
{
self.opener=null;
self.close();
}
function clock()
{
i=i-1;
document.title="本窗口将在"+i+"秒后自动关闭!";
if(i>0)
setTimeout("clock();",1000);
else
closewin();
} var i=10;
clock();
</script>
就会自动关闭了。
要是在自己的网页用弹出层代替的话就容易多了。。
http://learncss.lunarvill.com/jquery/colorbox/
sub_sindow.close();
是可以关掉的,可是我要的是它加载完了再关掉,这样就可以互相刷流量了啊。
setInterval("window.close()",100);//0.1秒之后关闭
opener.close();
试试看看
var sub_window=window.open();
window.setTimeout("sub_sindow.close()",2000); // 2秒后关闭
window.setTimeout("sub_sindow.close()",2000); // 2秒后关闭it can be ok.clear?
我不想展示,我只想打开后加载完毕就关闭,这样相互弹窗能不能带来流量啊?页面调处率很高,页面转换率很低,停留时间很短,会被认为是作弊吗?