proper way to reference an element

This commit is contained in:
Curt Hash 2009-10-08 14:33:43 -06:00
parent 62d42934a0
commit 5b8c83bf68
1 changed files with 2 additions and 2 deletions

View File

@ -71,10 +71,10 @@ for cat in os.listdir(opts.puzzles):
team = readCookie('team');
passwd = readCookie('passwd');
if (team != null) {
form.t.value = team;
document.getElementById("form").t.value = team;
}
if (passwd != null) {
form.w.value = passwd;
document.getElementById("form").w.value = passwd;
}
}
window.onload = getTeamInfo;