Simply, this code works with IE, and not with firefox, any opinions?
The Bank .JS file is here...
http://www.rooksweb.com/bank.js
Code:
<html>
<head>
<script language="javascript" src="bank.js"></script><script language="javascript">
function onee(name, passwo)
{
//Checking if it starts at one or zero
count = 0
if (first[0] == undefined)
count = 1
//Listing the names
document.write("<table bgcolor='aliceblue' border = 1><tr><td>First</td><td>Last</td><td>Pass</td><td>Balance</td></tr><tr>")
while(first[count] != undefined)
{
document.write("<tr><td>"+first[count] + "</td><td>" + last[count] + "</td><td>" + ID[count] + "</td><td>" + balance[count] + "</td></tr>")
count ++
}
document.write("</tr></table>")
//Prompt
name = name.toLowerCase()
//Checking if it starts at one or zero
count = 0
if (first[0] == undefined)
count = 1
//Finding which person they are talking about
while(name != first[count] && first[count] != undefined)
{count ++}
if (passwo == ID[count])
{alert("correct, your balance is $" + balance[count]);}
}
</script>
</head>
<body bgcolor="#000000">
<font color="#FFFFFF">
<center><h2>Bank©</h2>
<img src="pirate.jpg"></center>
<br>User Name:<br>
<input type="text" name="user"><br>Password:<br>
<input type="password" name="pass"><br><br>
<input type="submit" value="submit" onclick="onee(user.value, pass.value)">
</font></body></html>