下方的js代码是模仿别人的代码写的这样写对不对?asp网页中如何掉用这一段脚本? <!doctyp
下方的js代码是模仿别人的代码写的这样写对不对?asp网页中如何掉用这一段脚本?<!doctypehtml><html><head><metacharset="utf-8...
下方的js代码是模仿别人的代码写的这样写对不对?asp网页中如何掉用这一段脚本?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<script language="javascript">
function pos(){
document.getElementByName("USER_NAME").value = 用户01
document.getElementByName("USER_PWD").value = 159001856
}
</script>
<body onLoad="pos()">
<form action="http://192.168.0.1:10088/webidauth.cgi" method="post" name="form1">
<input type="text" Name="USER_NAME"><br><br>
<input type="password" Name="USER_PWD">
</form>
<script>
document.form1.submit();
</script>
</body>
</html> 展开
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<script language="javascript">
function pos(){
document.getElementByName("USER_NAME").value = 用户01
document.getElementByName("USER_PWD").value = 159001856
}
</script>
<body onLoad="pos()">
<form action="http://192.168.0.1:10088/webidauth.cgi" method="post" name="form1">
<input type="text" Name="USER_NAME"><br><br>
<input type="password" Name="USER_PWD">
</form>
<script>
document.form1.submit();
</script>
</body>
</html> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询