What you wrote doesn't work because the html is rendered before those values exist.
HTML is a passive language. It renders once, then quits.
Also, the variable you are trying to read is not available to the body tag. A tag's attributes are defined only inside that tag.
And the syntax "document.form.field.value;" is JavaScript syntax, not html or css syntax.
And it works better if you can spell "document".
Finally, the bgcolor attribute is deprecated. It will not be supported in future web language.
You must use JavaScript (or a server-side script) to do any dynamic (changeable) content.
Last edited by MidiMagic; Aug 8th, 2007 at 9:47 pm.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
Offline 3,314 posts
since Jan 2007