多了一个分号<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题文档 </title>
</head>
<script language="javascript">
function checkq()//;这里这个
{ document.write ("dfasf");
}
</script>
<body>
<form action="" method="get" name="hh">
<table align="right" style=" position:absolute;left:800;top:200" >
<tr> <td>帐号 </td> <td> <input type="text" name="us"> </td>
<tr> <td>密码 </td> <td> <input type="password" name="pw"> </td>
<tr> <td> <input type="button" onClick="checkq()" value="登陆" > </td> <td> <input type="reset" > </td>
</table>
</form>
</body>
</html>
<head>
<title>无标题文档 </title>
</head>
<script language="javascript">
function checkq()//;这里这个
{ document.write ("dfasf");
}
</script>
<body>
<form action="" method="get" name="hh">
<table align="right" style=" position:absolute;left:800;top:200" >
<tr> <td>帐号 </td> <td> <input type="text" name="us"> </td>
<tr> <td>密码 </td> <td> <input type="password" name="pw"> </td>
<tr> <td> <input type="button" onClick="checkq()" value="登陆" > </td> <td> <input type="reset" > </td>
</table>
</form>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货