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>