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()"));