日期:2014-05-17  浏览次数:20611 次

请问,在下拉框加入超连接后,如何指定目标框架?谢谢
<form   method= "POST "   action= "--WEBBOT-SELF-- ">

<p   align= "center ">
<select   name= "select "   onchange= "javascript:window.open(this.options[this.selectedIndex].value) "   size= "1 "   style= "text-align:   center;   font-size:   12px;   font-family:   Arial ">
<option   selected   value= "# "> 2005&#24180; </option>
<option> ------------------------- </option>
<option   value= "chat0502.htm "> 2005-02 </option>
<option   value= "chat0000.htm "> 2005-04 </option>
<option   value= "chat0509.htm "> 2005-09 </option>
</select> </p>
</form>

在这个HTML里有个 "T1 "的框架.如果制作普通的超连接,指定框架没什么问题。在列表框中如何指定呢?谢谢了

------解决方案--------------------
你是想在t1里面显示链接?
javascript:T1.location.href = this.options[this.selectedIndex].value;
------解决方案--------------------
javascript:document.getElementById( 'T1 ').location.href = this.options[this.selectedIndex].value;

------解决方案--------------------
javascript:parent.T1.location.href = this.options[this.selectedIndex].value

那个T1最好确定下大小写 接分 :)