<clear>
Last updated
Last updated
The <clear>
element resets one or more form items.
Name | Data type | Description |
---|---|---|
None
The output of the above script would be:
Computer: Say the magic number between one and nine. Human: Three. Computer: Try again. Say the magic number between one and nine. Human: Six. Computer: You're close. Try again. Say the magic number between one and nine. Human: Five. Computer: You guessed correctly!
None
<block>, <catch>, <error>, <filled>, <foreach>, <help>, <if>, <noinput>, <nomatch>
namelist
The list of variables to be reset; this can include variable names other than form items. When not specified, all form items in the current form are cleared.