这种功能html本身就支持,用不着ajax。
另外用frameset也可以,不过那个已经被W3C退休了,呵呵
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<script language="javascript" type="text/javascript">
function show_baidu()
{
document.getElementById("frm_baidu").setAttribute("src","
http://www.baidu.com");
}
</script>
</head>
<body>
<div id="a">
<a href="#" onclick="show_baidu()">haha</a>
</div>
<div id="b">
<iframe id="frm_baidu" width="800" height="300" />
</div>
</body>
</html>