<input type=button onclick='window.open("new.htm","","")'>
new.htm
<form name=form1 action=myasp.asp>
<input name=mytext>
<input type=button onclick="opener.window.history.go(0);form1.submit();">
</form>
new.htm
<form name=form1 action=myasp.asp>
<input name=mytext>
<input type=button onclick="opener.window.history.go(0);form1.submit();">
</form>
解决方案 »
- 请教高手jQuery怎么取得浏览器类型 如:IE
- 在面板外点击关闭面板
- 表单验证问题怎么写了没有效果
- 如果数据库字段长10位,在页面怎么用JS控制长度让输入中文和字母时的长度能控制,不会让数据库出错
- jquery和ajax在安卓设备的浏览器下会失效吗
- 向表单页面提交数据的问题
- 我做了一个层,放在<TD><input></input><div></div></td>里面,它总是出现在INPUT的右边,能让它出现在INPUT的下面吗?
- 如何实现建立动态的目录结构?
- 看看这段JAVASCRIPT代码
- 当文本框输入输入信息,后面的错误信息自动清空,焦点还在那个文本框内的时候
- 请问ActiveX控件在网页上只自动下载注册一次即可?
- 请问怎样把IE地址栏前面那个IE的图标换成自己的图标?
<Html>
<Head>
<Title>Test.html</Title>
<Script Language="JavaScript">
<!--
function NewWindow() {
var a=window.open("1.htm","_blank"); //生成新窗口
history.go(0); //刷新当前页面
}
-->
</Script>
</Head>
<Body>
<Input Type="Button" Value="新窗口" OnClick="NewWindow()">
</Body>
</Html>-------1.htm-------
<Html>
<Head>
<Title>1.htm</Title>
</Head>
<Body>
<Form Action="*.asp" Method="Post">
<Input Type="Text" Name="UID">
<Input Type=Submit>
</Form>
</Body>
</Html>
function winOpen(){
var winopt = "location=no scrollbars=yes menubar=no status=no resizable=1 width=640 height=400 left=80 top=80";
window.open("testb.html","win",winopt);
}</script>
<input type=button name=b value=test onclick=winOpen(); >testb.html<script>
function winClose(){
document.f.action="test.asp" ;
document.f.submit() ;
opener.location.reload() ;
}
</script>
<form name=f method=post>
<input type=text name=t >
<input type=button name=b value=testclose onclick=winClose(); >
</form>
<HTML>
<HEAD>
<TITLE> test</TITLE>
</HEAD>
<BODY>
<form name=form1>
<input type="button" name="a" value="open" onclick="window.open('bb.html','bb')">
</form>
</BODY>
</HTML>-------------------------bb.html-----------------------------
<HTML>
<HEAD>
<TITLE>bb</TITLE>
<script language="javascript">
<!--
function ee()
{
window.opener.location.reload();
document.form1.submit();}
-->
</script>
</HEAD>
<BODY>
<form name=form1 method=post action="qw.asp">
<input type="test" name="name" size=20>
<input type="button" name="b" value="submit" onclick="ee()">
</form>
</BODY>
</HTML>
<form name=form1 action=myasp.asp>
<input name=mytext>
<input type=button onclick="form1.submit()">
</form>
myasp.asp
<%
'此处写入数据库
%>
<body onload=opener.window.history.go(0)>
<%Response.Redirect "youasp.asp"%>