标签:class java http com art javascript
<html>
<head>
<title>一个链接打开两个地址</title>
<script LANGUAGE="JavaScript">
function hrefClick(newWin, locationWin) {
window.open(newWin); //打开新的窗口
window.location = locationWin;//当前位置窗口也改变
}
</script>
</head>
<body>
<a href="javascript:hrefClick(‘http://www.google.cn‘, ‘http://www.baidu.com‘);">
打开页面</a>
</body>
</html>
标签:class java http com art javascript
原文地址:http://www.cnblogs.com/zhangAiHan/p/3808155.html