frame框架jsp:(只说明意思,不细写了)

<frameset>

   <frame name="a" src="a.jsp"></frame>

   <frame name="b" src=""></frame>

</frameset>

在a.jsp中:

<div οnclick="tiao()">点击跳转到b框架</div>

js:

function tiao(){

   window.parent.b.location.href="http://www.baidu.com";

}

这样,只要在name为a的框架中点击,百度页面就会在b中显示。