window.open()没有返回值? var udswin=window.open("../Index.aspx","","toolbar=yes,status=yes,resizable=yes");为什么udswin是空的?注:我用的是IIS服务器,VS开发工具 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我不知道啊,有些机子是可以的,有的返回的是空值,不知道怎么回事。是不是IIS设置问题? <%@ Page language="c#" Codebehind="VerifySignIn.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Login.VertifySignIn" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML> <HEAD> <title>VertifySignIn</title> <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0"> <meta name="CODE_LANGUAGE" Content="C#"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <script language="javascript"> function opennew() { if (parent.frames.length==0) { var udswin=window.open("../Index.aspx","","toolbar=yes,status=yes,resizable=yes"); udswin.moveTo(0,0); udswin.resizeTo(window.screen.availWidth,window.screen.availHeight); } window.opener = null; window.close(); } </script> </HEAD> <body MS_POSITIONING="GridLayout" onload="opennew()"> 窗口确实也打不开,用的是IE8。而同事却完好的,我都检查了好多遍,实在不明白出现了什么问题。而我用IETester时,窗口能打开,但udswin也为空 终于找到原因的了:在internet选项---隐私--去掉“阻止弹出窗口程序”忙了一整天,居然是这个问题,郁闷死了。 FusionCharts使用JavaScript加载图表 父子页面打开关闭刷新的问题 有关给一个对象添加事件的问题 jquery的选择器问题 xml 导入 时 不进入onreadystatechange事件 求助`````````` 如何设置框架焦点 怎么样判断输入的是不是小数字? document.write()与write()有什么区别??? 请教一个也许很多人都懂,就是我不懂的问题,谢谢!-) 天天都提问 大家帮忙看看这两段代码有什么区别? 没分了,请教一个正则,谢谢了
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>VertifySignIn</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function opennew()
{
if (parent.frames.length==0)
{
var udswin=window.open("../Index.aspx","","toolbar=yes,status=yes,resizable=yes");
udswin.moveTo(0,0);
udswin.resizeTo(window.screen.availWidth,window.screen.availHeight);
}
window.opener = null;
window.close();
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout" onload="opennew()">
而我用IETester时,窗口能打开,但udswin也为空
忙了一整天,居然是这个问题,郁闷死了。