欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

window.open 打开新窗口 这是 乐语的例子 http://pytjs.zoosnet.net/js/JS3.aspx

shiping1 的头像
try
	{
		if (LR_isMobile || LR_checkagent('opera|safari|se 2.x'))
		{
			oWindow=window.open(url);
		}
		else
		{
			oWindow=window.open(url,'LRWIN_'+LR_websiteid, 'toolbar=no,width=630,height=435,resizable=yes,location=no,scrollbars=no,left='+((screen.width  - 630) / 4)+',top='+((screen.height - 435) / 4));
		}
		if(oWindow==null)
		{
			LR_ClientEnd=0;window.location=url;
			return;
		}
		oWindow.focus();
	}
	catch(e){
		if(oWindow==null){LR_ClientEnd=0;window.location=url;}
	}
普通分类: