fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script> function changeTarget(){ document.getElementById('w3s').target="_blank"; } </script> </head> <body> <a id="w3s" href="http://www.fmpq.com">访问 W3Cschool</a> <br><br> <input type="button" onclick="changeTarget()" value="修改target"> <p>尝试在你单击按钮之前点击链接。</p> </body> </html>
运行结果