一个链接打开两个链接地址一个新窗口一个当前窗口
作者:Darph 日期:2009-09-11
加入代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Ajax中国</title>
<SCRIPT LANGUAGE="JavaScript"> function adClick(ad, site) { window.open(ad); window.location = site; }</script>
</head>
<body> <a href="javascript:adClick('http://www.okajax.com', 'http://bbs.okajax.com');"> 点击链接看看效果,本页面将跳转到Ajax技术论坛,新开窗口将打开Ajax中国主页http://www.okajax.com</a>
</body>
</html>
评论: 0 | 引用: 0 | 查看次数: -
发表评论
上一篇
下一篇
















文章来自:
Tags: