如何在javascript中实现刷新(如同在按F5)
function ChangeExec()
{
document.nnn.action="General_header_01.asp";
document.nnn.submit();
window.opener.location.reload(); //这样是错误的!怎么代替它呢?
}请指点指点,谢谢
function ChangeExec()
{
document.nnn.action="General_header_01.asp";
document.nnn.submit();
window.opener.location.reload(); //这样是错误的!怎么代替它呢?
}请指点指点,谢谢
解决方案 »
- java web 项目如何实现自动提醒功能
- hibernate 中执行hql和sql哪个效率更高一点
- 请教一个关于web.xml的基础配置问题
- websphere 报错 敬请你的帮助..................
- 汉字乱码问题,解决就给分!
- 使用Datetimepicker控件为什么出现这种情况?
- 请教一个使用lucene做全文检索与数据库连接时的问题
- JSP程序有错,解决就给分。
- request的getattribute(..) 和getparameter(..)有什么区别
- 求助!我想把一个JavaWeb+MySQL项目改成JavaWeb+SqlServer时里面的分页语句错误了,不知道错在哪
- 用tomcat5.0出现这个问题,怎么解决?
- 如果得到数据库中最新一条值??
我只知道<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<form name="form1" method="post" action="">
<A href="javascript:this.location.reload()">刷新</A>
</form>
</body>
</html>
我只知道<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<form name="form1" method="post" action="">
<A href="javascript:this.location.reload()">刷新</A>
</form>
</body>
</html>
{
document.nnn.action="General_header_01.asp";
document.nnn.submit();
document.location.reload();
}
但是 document.nnn.action="General_header_01.asp";
document.nnn.submit();
没有执行.怎么样按顺序执行呢?
document.nnn.submit(); 然后调用hidden按钮的onclick()就可以了。
楼主试试。