text1.html<html>
<head>
<script type="text/javascript">
function text()
{
var user = document.form1.user;
var pass = document.form1.pass;
if(user.value == "" && pass.value == "")
{
window.open("text2.html");
}
}
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="user" type="text" /> <br />
<br />
<input id="pass" type="text" /><br />
<input id="btn" type="button" value="button" onclick="text()"/>
</div>
</form>
</body>
</html>text2.html<html>
<body>
登陆画面
</body>
</html>
<head>
<script type="text/javascript">
function text()
{
var user = document.form1.user;
var pass = document.form1.pass;
if(user.value == "" && pass.value == "")
{
window.open("text2.html");
}
}
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="user" type="text" /> <br />
<br />
<input id="pass" type="text" /><br />
<input id="btn" type="button" value="button" onclick="text()"/>
</div>
</form>
</body>
</html>text2.html<html>
<body>
登陆画面
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货