如何使用JavaScript在<div>中加载HTML页面?
<div id="content">
.
<div id="topBar"> <a href ="#" onclick="load_home()"> HOME </a> </div><div id ="content"> </div><script> function load_home(){ document.getElementById("content").innerHTML='<object type="type/html" data="home.html" ></object>'; }</script>
慕莱坞森
BIG阳