先谢谢大家!
<frameset rows="100,*,25" framespacing="0" border="0" frameborder="0">
<frame noresize name="topmenu" src="top.html" target="contents"  scrolling="no" />
<frameset cols="180,*" id="resize">
<frame noresize name="menu" src="left.html" target="desktop" scrolling="yes" />
<frame noresize name="desktop" src="right.html" scrolling="yes" id="desktop"/>
</frameset>   
<frame noresize name="status_bar" scrolling="no" src="bottom.html" />
</frameset>我想在desktop中点击一个按钮,实现在desktop(本页面)跳转的功能,请问如何写?
我试过
<input type="submit" name="button2" id="button2" value="添加" onclick ="window.parent.document.getElementById('desktop').src='http://www.baidu.com/';" />
这样写,我alert是取到这个document的。但是没有成功,不知道是什么原因?