在左框架里定义一个按钮,想实现点击按钮,跳转到首页,但不想在此框架内打开
我该怎么做?
左框架里:
<script language="JavaScript" type="text/javascript">
function menuSubmit(sname) {
if (sname == "转向首页"

{
document.location="http://localhost:8080/WEBOA";
//parent.close();
}
}
</script>
按钮:
<img onclick="menuSubmit('退出系统') "
src="<%=request.getContextPath()%>/images/Kroute_mright.png">
<a href="###" onclick="menuSubmit('转向首页') ">转向首页</a>
通过上面的代码只能实现在左框架里显示首页,首页右半部分被右框架给挡上了
我怎么做才能不弹出新页面的前提下得到完整的首页呢?
帮忙!
<script language="JavaScript" type="text/javascript">
function menuSubmit(sname) {
if (sname == "转向首页") {
top.location="http://localhost:8080/WEBOA";
//parent.close();
}
}
</script>
posted on 2006-06-22 13:01
死亡猎人 阅读(462)
评论(0) 编辑 收藏 引用