First problem is that you cannot setnames() onload of the control page because the scores page isn't open yet:
Code:
<BODY onLoad="setnames()" bgcolor="#ffffff" text="#000000">
Get rid of the red part.
Your setnames() function appears valid and will work after the scores page is loaded if setnames() is the only function on the control page. But, there must be a syntax error in one of the previous functions, this invalidates all code that follows. Here it is (at or around line#57 on the control page):
Code:
if scores.(board.A11points.value!=0){scores.board.A11points.value--;scores.board.AScore.value--;}}
should be:
Code:
if (scores.board.A11points.value!=0){scores.board.A11points.value--;scores.board.AScore.value--;}}
There could be other problems but, you seem to have grasped the fundamentals, and this should get you on your way. At least setnames() will now work.
Since you will be testing and presumably using this locally as opposed to on the web, adding this line (in red):
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- saved from url=(0014)about:internet -->
to both pages, will prevent the local security warning.
Bookmarks