<script language="javascript">
function BodyOnload()
{
InitClass(0,0); //页面加载的时候,自动执行这JS(即:初始状态)
}
</script>
在body里加上
<body onload="BodyOnload()">
</body>这样行不?
function BodyOnload()
{
InitClass(0,0); //页面加载的时候,自动执行这JS(即:初始状态)
}
</script>
在body里加上
<body onload="BodyOnload()">
</body>这样行不?
test1.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function BodyOnload()
{
alert("sdfasdfasdfsdf"); //页面加载的时候,自动执行这JS(即:初始状态)
}
</script>
</head><body onload="BodyOnload()">
<form action="test2.html" method="post">
<input type="submit" value="sdfasdfasdf">
</form>
</body>
</html>test2.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body></body>
</html>
测试通过
<input type="reset" name="reset1" value="" style="display:none" >
<script>
form.reset1.click();
</script>
<input type="reset" name="reset1" value="" style="display:none" >
<script>
form.reset1.click();
</script>