电脑技术学习

javascript一个链接打开两个链接地址

dn001

<head>
<SCRIPT LANGUAGE=”JavaScript”>
function adClick(ad, site) {
window.open(ad);
window.location = site;
}
</script>
</head>

<body>
<a href=”javascript:adClick(’http://www.mypchelp.cn’, ‘http://code.knowsky.com’);”> 点击链接看看效果</a>
</body>