关于链接转向的一个问题
有没有办法用javascript实现当我点击a链接的时候,它却弹出b链接指向的页面?
程序代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www. xmlns="http://www. http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script>
function aEvent(obj_a){
var obj_b = document.getElementById("b_id");
obj_a.href = obj_b.href;
}
</script>
</head>
<body>
<a href="#" onclick="aEvent(this)">a</a>
<a href="http://www. id="b_id">b</a>
</body>
</html>gu_tong大神 等你指教








