JS仿Open()打开一个新窗口,并不是弹出新窗口,貌似可以绕过IE的阻止。
<script language="javascript" type="text/javascript">
function OpenWin(type, obj)
{
obj.target = "_blank";
obj.href = "Untitled-2.htm?Type=" + type;
obj.click();
}
</script>
function OpenWin(type, obj)
{
obj.target = "_blank";
obj.href = "Untitled-2.htm?Type=" + type;
obj.click();
}
</script>
<a href="javascript:void(0)" onclick="OpenWin(1,this)">打开</a>