1,錨點跳轉
定義一個錨點<a name='anchor1' href='#'>anchor</a>
本頁跳轉的js代碼:
window.location = '#anchor1';
iframe控制父頁跳轉js代碼:
parent.location.hash = '#anchor1';

2,動態修改標簽的屬性以及方法
修改class屬性以及style:
child.style.cursor = "default"; or child.style.cursor = "hand";
child.className = "added";

修改方法:
var obj = document.getElementById("img1");
obj.setAttribute("onclick",new function("test()"));