summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/HTMLButtonElement/value/getset.html
blob: cb0f4d4975ffd3c64b77c00f4538eb15ba135e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html>
<head>
<script>
function test() {
	if (window.layoutTestController) {
		window.layoutTestController.dumpAsText();
	}
	var but = document.getElementById('button');
	but.value = 'Success';
	document.writeln("Button value is: " + but.value);
}
</script>
</head>
<body>
<p>Tests: HTMLButtonElement::value</p>

<p>
This test changes the value of the button. The original value is "Fail"; the new value should be "Success"
</p>

<hr>

<input type=button id='button' value='Fail'></input>

</body>
<script>test()</script>
</html>