onclick="javascript:location.href='rbcx.jsp';target='right'",请问这句代码错那了?

宝宝妈妈2023-05-01  55

target不能这么写,然后直接写location.href的话针对的是当前页面,所以你要讲iframe里面的src改变成需要的jsp文件,我这里测试的是t.html,没有问题的。

<html>

<table>

<tr>

<td><a href="javascript:void(0)" onclick="javascript:document.getElementById('right').src='t.html'">test t</a></td><td><iframe name="right" id="right" width="300px" height="500px" src=""/></td>

</tr>

</table>

</html>

style='cursor:url(http://5211.91.tc/imcur/060.cur)'这个是CSS控制的鼠标样式。CSS是层叠样式表,你上面的这段代码就是CSS对BODY标签使用内联样式。


转载请注明原文地址:https://54852.com/read/607220.html