编辑下面的代码:【加编码】
<html> <head> <script> function myFunction(e) { alert(e.cancelable); } </script> </head> <body> <p onclick="myFunction(event)">Click this paragraph. An alert box will tell if the event is a cancelable event.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂