<html> <head> <script language="javascript">... function check(obj) ...{ alert(obj.target) s = obj.href; arr = s.split("?"); if(arr.length) alert(arr[1]); } </script> </head> <body> <a href="abc.jsp?name=aaaa" target='_blank' onclick="check(this)">查看历史1 </a> </body> </html>