Привет всем! У меня есть файл login.html для моего хотспота, мне дали этот код, я могу его редактировать, но забыл, как перенаправлять на http://www.google.com (например), после того, как кто-то нажимает на кнопку входа. Можете помочь, пожалуйста?
Спасибо!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Login</title>
<link rel="stylesheet" href="style.css" title="style" media="screen" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<script>
/* <![CDATA[ */
$(document).ready(function(){
$(".block").fadeIn(1000);
$(".idea").fadeIn(1000);
$('.idea').supersleight();
$('#username').example('Username');
$('#password').example('Password');
});
/* ]]> */
</script>
</head>
<body>
<div id="wrap">
<div class="idea">
<img src="images/open.png" alt=""/>
<div class="block">
<form name="login" action="$(link-login-only)" method="post" $(if chap-id) onSubmit="return doLogin()" $(endif)>
<div class="left"></div>
<div class="right">
<input type="hidden" name="dst" value="$(link-orig)" />
<input type="hidden" name="popup" value="true" />
<div class="div-row">
[td]Enter name[/td]
<input type="text" id="username" name="username" onfocus="this.value='';" onblur="if (this.value=='') {this.value='$(username)';}" value="$(username)" />
</div>
<div class="div-row">
[td]Enter password[/td]
<input type="password" id="password" name="password" onfocus="this.value='';" onblur="if (this.value=='') {this.value='************';}" value="************" />
</div>
<br /></form>[/tr][td]<img src="img/logobottom.png" alt="Myname" /></a>[/td][/tr]</center>
<div class="send-row">
<button id="login" value="" type="submit" name="login"></button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>
Спасибо!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Login</title>
<link rel="stylesheet" href="style.css" title="style" media="screen" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<script>
/* <![CDATA[ */
$(document).ready(function(){
$(".block").fadeIn(1000);
$(".idea").fadeIn(1000);
$('.idea').supersleight();
$('#username').example('Username');
$('#password').example('Password');
});
/* ]]> */
</script>
</head>
<body>
<div id="wrap">
<div class="idea">
<img src="images/open.png" alt=""/>
Welcome to My Free WiFi
</div><div class="block">
<form name="login" action="$(link-login-only)" method="post" $(if chap-id) onSubmit="return doLogin()" $(endif)>
<div class="left"></div>
<div class="right">
<input type="hidden" name="dst" value="$(link-orig)" />
<input type="hidden" name="popup" value="true" />
<div class="div-row">
[td]Enter name[/td]
<input type="text" id="username" name="username" onfocus="this.value='';" onblur="if (this.value=='') {this.value='$(username)';}" value="$(username)" />
</div>
<div class="div-row">
[td]Enter password[/td]
<input type="password" id="password" name="password" onfocus="this.value='';" onblur="if (this.value=='') {this.value='************';}" value="************" />
</div>
<br /></form>[/tr][td]<img src="img/logobottom.png" alt="Myname" /></a>[/td][/tr]</center>
<div class="send-row">
<button id="login" value="" type="submit" name="login"></button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>