ohandle.focus = true ;
试试行不行?
试试行不行?
解决方案 »
- 单独再开一贴,帮我写一个类吧。。用javascript
- 在官网下的example,打开tree里面得例子,怎么报错说是拒绝访问呢?请问什么问题?
- google首页的一些脚本好难懂,大侠赐教.
- 请教:在使用frameset框架的web页面中如何实现关闭ie弹出确认对话框后点击确认跳转到另外一个页面否则还停留在当前页面
- 我的代码用 Javascript Obfuscator 2.22 混淆后就不能用了,怎么办?
- eclipse共享项目到svn服务器时提示Couldn't find a repository
- iframe中的打印问题
- 如何将IE窗口控制到能缩到屏幕右下角,最近好象有这样的技术出现
- (?<!4)56(?=9)中<是什么意思
- js抽奖16位9开头出问题?
- 如何使下拉列表框(select)变为可编辑?
- 怎样设置marquee中的字体颜色?(在线……)
用这个吧<script>
onload = showModalDialog("abc.html","","dialogWidth:590px;status:'no'");
</script> showModalDialog就可以有你要的效果
父窗口:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<script language=javascript>
function cc()
{
window.showModalDialog("bb.htm",window,"dialogWidth:545px;dialogHeight:335px;status=no;help=no")
}
</script>
<P> </P>
<input type=button value="button" onclick="cc()">
<br/>
<br/>
<input type=text name=txt value="test">
</BODY>
</HTML>bb.htm:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<script language=javascript>
function ccc()
{
var par=parent.window.dialogArguments.document.all("txt");
par.value="搞定了!";
parent.close();
}
</script>
<input type=button value="button" onclick="ccc()">
</BODY>
</HTML>
更正:
ohandle = howModalDialog("b.htm","SUB_WINDOW","dialogWidth:590px;status:'no'");
请教!
1,如何在模态对话框中进行提交而不新开窗口?
如果你 的 浏览器是IE5.5+,可以在对话框中使用带name属性的iframe,提交时可以制定target为该iframe的name。对于IE4+,你可以用高度为0的frame来作:例子,test6.htm
===================
<script>
window.showModalDialog("test7.htm")
</script>test7.htm
===================
if(window.location.search) alert(window.location.search)
<frameset rows="0,*">
<frame src="about:blank">
<frame src="test8.htm">
</frameset>test8.htm
===================
<form target="_self" method="get">
<input name=txt value="test">
<input type=submit>
</form>
<script>
if(window.location.search) alert(window.location.search)
</script>
2,可以通过http://servername/virtualdirname/test.htm?name=mxh方式直接向对话框传递参数吗?
答案是不能。但在frame里是可以
请那位高人指点一下,用window.open()的方法怎样才能使打开的子窗体在
未关闭之前始终在父窗体的上面显示?
请高手们指教!谢谢!
做B/S信息系统,showModalDialog是最好的选择
研究一下这个吧,别想用其他途径了,浪费时间