js点击a链接弹出alert对话框

代码

<html>
  <head>
  <meta charset="utf-8">
    <meta name="generator"
    content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />
    <title>a链接</title>
  </head>
  <body>
  <a href="javascript:alert('a');">链接</a>
  </body>
</html>

 

posted @ 2016-09-30 12:15  缘琪梦  阅读(10014)  评论(0编辑  收藏  举报