编辑下面的代码:【加编码】
<html> <body> <input type="button" id="button1" value="Click Me!"> <p>The text on the button is: <script> document.write(document.getElementById("button1").value); </script></p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂