回复 17楼 icecool
谢谢!没试成功。
我要登录的是一个内部网络
http://192.168.21.4/Login.html
首页源码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7"/>
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<title>区域健康信息平台</title>
<link rel="icon" href="favicon.ico">
<link href="MainImage/login.css" type="text/css" rel="Stylesheet" />
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="Scripts/Login.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
jQuery.ajaxSetup({ cache: false });
$.get("/Ajax/Default.aspx", { type: "GetLoginPage", ParameterKey: "OP" },
function (result) {
if (result == "/MainManage/VktMain.aspx") {
window.open(result, "_self");
}
});
$("#UserName").focus();
});
</script>
</head>
<body scroll="auto">
<form id="form1">
<div class="bodymain">
<div id="logo">
<div id="form">
<div class="left">
<div class="user"><input id="UserName" class="text" onfocus="this.select()" name="UserName"></div><!--onmouseover="this.focus()"-->
<div class="pwd"><input id="Password" class="text" onfocus="this.select()" value="" type="password" name="Password"></div><!--onmouseover="this.focus()"-->
</div>
<div class="right">
<div id="Ggws_btn" class="submit"></div><div id="Ggws_reset" class="reset"></div>
</div>
<div class="bottom">
<div style="float:left; font-size:14px;">技术支持:XXXXX信息技术有限公司 联系电话:010-88668888 Copyright © 2011 - 2018 XXXXX信息技术有限公司 版权所有 </div>
<div style="float:right"><img src="MainImage/foot_logo.gif" width="161" height="35" /></div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>
问:vfp 如何在指定的网页输入密码、用户名并登录
vfp 9.0
表名:yh.dbf 字段 yh.yhmc yh.mm
写一代码实现:打开指定的网页,在网页上自动填写事先设定的用户名和密码 yh.yhmc yh.mm 并登录。
比如打开 http://192.168.21.4/Login.html 并登录