1<html> 2<head> 3<script> 4function test() { 5 if (window.layoutTestController) { 6 window.layoutTestController.dumpAsText(); 7 } 8 var but = document.getElementById('button'); 9 but.value = 'Success'; 10 document.writeln("Button value is: " + but.value); 11} 12</script> 13</head> 14<body> 15<p>Tests: HTMLButtonElement::value</p> 16 17<p> 18This test changes the value of the button. The original value is "Fail"; the new value should be "Success" 19</p> 20 21<hr> 22 23<input type=button id='button' value='Fail'></input> 24 25</body> 26<script>test()</script> 27</html> 28