类似的问题有很多人问过了,用模态窗口
http://community.csdn.net/Expert/topic/3480/3480264.xml?temp=.704159
http://community.csdn.net/Expert/topic/3535/3535328.xml?temp=.8636743或者提示他一下:
<script language="JavaScript">
<!--
function openwin(url,name,features)
{
var Withwolf=window.open(url,name,features)
if(!Withwolf)
{
Withwolf=window.open(url,name,features)
}
if(!Withwolf)
{
alert("无法开启新窗口,如果您使用了窗口拦截工具,请将其暂停使用")
}else{
Withwolf.focus()
}
}
openwin('','xiaobin','width=400, height=300')
//-->
</script>
http://community.csdn.net/Expert/topic/3480/3480264.xml?temp=.704159
http://community.csdn.net/Expert/topic/3535/3535328.xml?temp=.8636743或者提示他一下:
<script language="JavaScript">
<!--
function openwin(url,name,features)
{
var Withwolf=window.open(url,name,features)
if(!Withwolf)
{
Withwolf=window.open(url,name,features)
}
if(!Withwolf)
{
alert("无法开启新窗口,如果您使用了窗口拦截工具,请将其暂停使用")
}else{
Withwolf.focus()
}
}
openwin('','xiaobin','width=400, height=300')
//-->
</script>
问题是该窗口要被拦截,有没有什么更好的办法解决该问题,我用VB.NET写的WEB程序,代码如下,希望各位大虾一顶帮忙!!!
If Session("xssjmxid") <> 1 Then
Response.Write("<script language='javascript'>window.open ('xssjk.aspx', 'xssjk');</script>")
End If
If Session("xssjmxid") = 1 Then
Response.Write("<script language='javascript'>window.open ('xssjz.aspx', 'xssjk');</script>")
End If