<a id="a_id" href="ttt.htm">xxx</a>
<iframe name="abc"></iframe>
<script>
document.getElementById("a_id").target = "abc";
</script>
<iframe name="abc"></iframe>
<script>
document.getElementById("a_id").target = "abc";
</script>
解决方案 »
- 请问jquery里的$("[id$=**]")是如何实现的?
- 请问下JAVASCRIPT一个问题
- [求助]如何提取真实链接地址
- confirm的使用?
- highchart 中seriesundefined的问题
- [求助]鼠标放到图片上时,图片停止滚动
- 难...如何在打开主页时,在页面上用层显示图片或Flash(横幅),停3秒钟后自动隐藏??
- JavaScript和VBScriptt共用的问题
- 菜鸟问题-如何为用createElement新创建的对象设定他的事件处理函数
- 在javascript中如何得到!鼠标的位置!谢谢了!
- new Array(8) 只赋1个值有问题,如何解决?
- 求一正则表达式
<img src="<%=realpath%>/buttonimages/query.gif"alt="loading..." border="0">
</a><iframe border=0 name=newjsp marginwidth=0 framespacing=0 marginheight=0 noresize
scrolling="auto"
src="customer.do?method=newJspPage" frameborder=0 width=100% height="800"></iframe>代码是这样的,用上老兄的方法没有达到效果啊
如果你的意思只是改变iframe的内容,那就和a的target无关了:<a id="shishi" href="javascript:selorder('customer.do?action=selorder')">
<img src="<%=realpath%>/buttonimages/query.gif"alt="loading..." border="0">
</a><iframe border=0 name=newjsp marginwidth=0 framespacing=0 marginheight=0 noresize
crolling="auto"src="customer.do?method=newJspPage" frameborder=0 width=100% height="800"></iframe><script>
function selorder(myurl)
{
document.frames["newjsp"].location.href=myurl;
}
</script>