I am still very much new to Java, but can someone pleae help me out? Have a thge following script except that after login button is pressed, I need a new window open to the users full screen and the page they just came from to close. Can someone help?
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
if (username=="member1") { window.location="page1.html"; done=1; }
if (done==0) { alert("Invalid login!"); }
}
</SCRIPT>
<BODY>
<center>
<form name=login>
<table width=225 border=0 cellpadding=0>
<tr><td colspan=2><center><font size="+2"></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<input type=button value=http://www.webdeveloper.com/forum/archive/index.php/"Login!" onClick="Login()"></td></tr>
</table>
</form>
Thanks Tasmanian
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
if (username=="member1") { window.location="page1.html"; done=1; }
if (done==0) { alert("Invalid login!"); }
}
</SCRIPT>
<BODY>
<center>
<form name=login>
<table width=225 border=0 cellpadding=0>
<tr><td colspan=2><center><font size="+2"></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<input type=button value=http://www.webdeveloper.com/forum/archive/index.php/"Login!" onClick="Login()"></td></tr>
</table>
</form>
Thanks Tasmanian