Login.html
Copy codeThe Code is as follows:
<Script language = "javascript" type = "text/javascript">
Function $ (id ){
Return document. getElementById (id );
}
Function checkUser (){
If ($ ("u1"). value = "hello" & $ ("p1"). value = "123 "){
Return true;
} Else {
Return false;
}
}
</Script>
<Form action = "OK .html">
<Div style = "width: 300px; height: 200px; border: 1px solid red; background-color: pink">
<P/>
U: <input id = "u1" type = "text" value = "/> <br>
P: <input id = "p1" type = "text" value = ""/> <br>
<Input type = "submit" onclick = "return checkUser ()" value = "login" style = "margin-left: 20px"/>
</Div>
</Form>
OK .html
Copy codeThe Code is as follows:
<Script language = "javascript" type = "text/javascript">
SetTimeout ("javascript: clearinterval(mytime={{open('manage.html ')", 5000 );
Function changeSec (){
Document. getElementById ("myspan"). innerText =
ParseInt (document. getElementById ("myspan"). innerText)-1;
}
Var mytime = setInterval ("changeSec ()", 1000 );
</Script>
<Span id = "myspan"> 5 </span> seconds after successful login...
Manage.html
Copy codeThe Code is as follows:
Welcome