Try the following code fragment:
1.htm:
<script>
function mm()
{
var win = window.open("a.htm","","toolbars=no,status=no,width=160,height=100");
//Do Something Here
//Then Use win.close();
}
</script>
<input type=button value=search onclick=mm()>
a.htm:
<body onblur='window.focus()'>
please wait....
</body>
1.htm:
<script>
function mm()
{
var win = window.open("a.htm","","toolbars=no,status=no,width=160,height=100");
//Do Something Here
//Then Use win.close();
}
</script>
<input type=button value=search onclick=mm()>
a.htm:
<body onblur='window.focus()'>
please wait....
</body>
解决方案 »
- 求大神查看一下这段代码有什么问题?
- 关于js\css怎么合并的
- 求助jsp
- 两个小问题
- 关于JAVASCRIT显示值的问题!
- 如何用javascript实现每隔几秒中把字符串写入表格中
- 怎样简写这段代码,就是只要定义一次form名字,下面不用再输了
- 打开一个网页a.html的时候,该页全屏显示,怎么实现?
- 高手请进,关于xmlhttp刷新的问量,急,急,急,急,急,急,急
- 菜鸟提问:如何解决重复提交表单的问题。
- 如何自动控制用什么浏览器打开链接
- 我要在JavaScript中控制.Net中的Radionbutton的变化:选中其中的一个RadioButton,其它都变成radiobutton.check=false,怎么做?在线等,有
2.在数据库页面这样写
<%
response.Write("数据搜索中...")
数据库操作语句.
把值返回给查询页面
关闭自己
%>
这样也可以省很多系统资源.