I have two questions.
learning.html
<head> <script language="javascript" src="validation.js"> </script> <title>Learning </title> </head> <body> <div id="head"> <h1 id="h1">Learning</h1> User Name: <input type="textbox" name="B" id="B" size="10"> Password: <input type="textbox" name="B" id="B" size="10"> <input type="Submit" name="Login" value="Login"> <input type="button" name="Register" value="Register" onclick="window.location='registerform.html'"> </div> </body> </html>
registerform.html is a page I want to go.
and this is my validation.js
function gopage(){
window.location='registerform.html';
return true;
}
My first question is that, "learning.html" works in firefox but doesn't work in IE. And I want to know why.
My second question is that, if I replace this line:
<input type="button" name="Register" value="Register" onclick="return gopage();">
instead of line 14, then, when I click 'register' nothing happens. while by clicking on it, I want to go to page registerform.html.
Thanks for your helps.

New Topic/Question
Reply



MultiQuote



|