日期:2014-05-18  浏览次数:20686 次

关于BUTTON加框架链接的问题
<a   href= "test.jsp "   target= "leftFrame "> 链接   </a>
普通的是这样
但用在按钮上不知怎么写
<input   type= "button "   name= "button "   value= "button "   onclick= "javascript:document.location.href= 'xxx.jsp ' ">
怎么让 'xxx.jsp '页在框架左边显示呢?

------解决方案--------------------
<form target= "leftFrame " method= "post " action= "xxx.jsp ">
<input type=submit>
</form>
------解决方案--------------------
<script language= "JavaScript ">
function fff(){
document.form.action= "xxx.jsp ";
document.form.target= "leftFrame ";
document.form.submit();
}
</script>
<input type= "button " name= "button " value= "button " onclick= "fff() "/>

末尾别少 "/ "