这个代码怎么在IE上没反应 点击按钮
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <div id="box"> <input id="btn" type="button" value="按钮"> </div> <script> var c=document.getElementById("btn"); function show(){ alert("hello"); } c.attachEvent('onclick',show); </script> </body> </html>