OZONE Asylum
Forums
DHTML/Javascript
Error: document.form has no properties
This page's ID:
27669
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi all, This is only a little problem I'm sure but I can't see it. I get this error : document.form has no properties and my text field isn't modified. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>test</title> <script type="text/javascript" language="javascript"> <!-- function tossing() { toss = 0; var toss = Math.round(20*Math.random()); document.dice_toss.dice.value = toss; } //--> </script> </head> <body> <form id="dice_toss" action="toss_that(); return false;"> Dice: <input id="dice" type="text" value=""/><br /> <input type="button" onclick="return tossing()" value="Toss It Dude!"/><br /> <input id="tossit" type="submit" value="Submit"/> </form> </body> </html> [/code] Cheers, Patrick [small](Edited by [url=http://www.ozoneasylum.com/user/3003]Sirius[/url] on 03-22-2006 04:03)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »