改成这样 <script language = "JavaScript"> function MM_openBrWindow(){ window.open("zhuce1.jsp"," ","toolbar = yes,location = yes, status = yes,menubar = yes,scrollbars = yes,resizable = yes"); } </script>然后再把调用那一句也改了. onClick ="MM_openBrWindow()"
<html> <head> <title> user </title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script language = "JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features){//v2.0 window.open(theURL,winName,features); } //--> </script> </head><body bgcolor = "#CCCCFF"> <div align = "center"> <br><br> <p><font face ="隶书"><b><font size ="6">用户登录页面</font></b></font></p> <br><br> <form method ="GET" action ="denglu.jsp"> <p><font size = "4"><b><font face ="隶书">用户名称:</font></b></font><font size ="4"><b><font face ="隶书"> <input type ="text" name ="txtname" size ="20" maxlength ="20"> </font></b></font></p> <p><font size = "4"><b><font face ="隶书">用户密码:</font></b></font><font size ="4"><b><font face ="隶书"> <input type ="password" name ="txtpassword" size ="20" maxlength ="20"> </font></b></font></p> <div align ="center"><font size ="4"><b><font face ="隶书"> <input type ="submit" name ="cmddenglu" value ="登录"> </font><font size ="4"><b><font face ="隶书"> <input type ="button" name ="cmdzhuce" value = " 注册 " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这是32行 onClick ="MM_openBrWindow('zhuce1.jsp','','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')"> </font></b></font></b></font></div> </form> </div> </body> </html> 你用这端替换你原来的,就ok了,我只是把你的一些不应该要空格去掉了
这样一改错误更多了。首先语法错误,其次是onclick没有定义
<input type ="button" name ="cmdzhuce" value = " 注册 " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这是32行 onClick ="MM_openBrWindow('zhuce1.jsp','','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')">”~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这是32行“,这是什么<input type ="button" name ="cmdzhuce" value = " 注册 " onClick ="MM_openBrWindow('zhuce1.jsp','','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')">
<script language = "JavaScript">
function MM_openBrWindow(){
window.open("zhuce1.jsp"," ","toolbar = yes,location = yes, status = yes,menubar = yes,scrollbars = yes,resizable = yes");
}
</script>然后再把调用那一句也改了.
onClick ="MM_openBrWindow()"
<head>
<title>
user
</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language = "JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features){//v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head><body bgcolor = "#CCCCFF">
<div align = "center">
<br><br>
<p><font face ="隶书"><b><font size ="6">用户登录页面</font></b></font></p>
<br><br>
<form method ="GET" action ="denglu.jsp">
<p><font size = "4"><b><font face ="隶书">用户名称:</font></b></font><font size ="4"><b><font face ="隶书">
<input type ="text" name ="txtname" size ="20" maxlength ="20">
</font></b></font></p>
<p><font size = "4"><b><font face ="隶书">用户密码:</font></b></font><font size ="4"><b><font face ="隶书">
<input type ="password" name ="txtpassword" size ="20" maxlength ="20">
</font></b></font></p>
<div align ="center"><font size ="4"><b><font face ="隶书">
<input type ="submit" name ="cmddenglu" value ="登录">
</font><font size ="4"><b><font face ="隶书">
<input type ="button" name ="cmdzhuce" value = " 注册 "
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这是32行
onClick ="MM_openBrWindow('zhuce1.jsp','','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')">
</font></b></font></b></font></div>
</form>
</div>
</body>
</html>
你用这端替换你原来的,就ok了,我只是把你的一些不应该要空格去掉了
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这是32行
onClick ="MM_openBrWindow('zhuce1.jsp','','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')">”~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这是32行“,这是什么<input type ="button" name ="cmdzhuce" value = " 注册 " onClick ="MM_openBrWindow('zhuce1.jsp','','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')">