6 <textarea id=
"noDefaultText"></textarea>
7 <textarea id=
"hasDefaultText">Default Text
</textarea>
8 <input id=
"resetButton" type=
"reset">
10 <p>This test verifies that textarea controls are properly reset.
11 <br>You should see two element IDs below, and the word
"SUCCESS" twice:
13 function test(element
)
15 var result
= "FAILED";
16 if (element
.value
== element
.defaultValue
)
18 document
.writeln("<br>" + element
.id
+ ": " + result
);
20 var noDefaultText
= document
.getElementById("noDefaultText");
21 var hasDefaultText
= document
.getElementById("hasDefaultText");
22 noDefaultText
.value
= "Not the default value.";
23 hasDefaultText
.value
= "Not the default value.";
24 document
.getElementById("resetButton").click();