fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script> function displayResult(){ var x=document.getElementById("button1").type; alert(x); } </script> </head> <body> <form> <input type="button" onclick="displayResult()" value="显示按钮类型" id="button1"> </form> </body> </html>
运行结果