iframe如何在新窗口打开

wantforget 2009-05-13 12:42:47
<iframe id="top" src="http://www.credntc.com/show.asp" width="100%" height="300"> </iframe> 如这个代码,点上面链接,会在本地打开一个全新窗口,而不是只限于300大小 如点关于我们会变成这样http://www.credntc.com/htdocs/pages.asp?id=13 在本页打开和打开一个新窗口代码,分别是什么,求教
...全文
2221 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
wantforget 2010-02-26
  • 打赏
  • 举报
回复
关键是<iframe id="top" src="http://www.credntc.com/show.asp" 这个调用的网址内的代码我改不了。这要怎么办呢?还是只能在本页打开。我想在新页面
河南浪人 2009-09-28
  • 打赏
  • 举报
回复
上面的内容都对
kaishiyouxi 2009-09-28
  • 打赏
  • 举报
回复
学习
sunny-aria 2009-06-01
  • 打赏
  • 举报
回复
学习(⊙o⊙)哦
BlueSky4014 2009-05-13
  • 打赏
  • 举报
回复
本窗口打开
将Target属性设置为"_self"
新窗口打开
将Target属性设置为"_blank"
Msxindl_Com 2009-05-13
  • 打赏
  • 举报
回复
假如http://www.credntc.com/show.asp的内容是:

1、 <a href="xx.asp" target="_blank">xx.asp</a> 点击此链接后就会在新窗口中打开.

2、 <a href="xx.asp" target="_self">xx.asp</a>
或者
<a href="xx.asp">xx.asp</a>

点击此链接后就会在当前iframe窗口中打开.
wcwtitxu 2009-05-13
  • 打赏
  • 举报
回复
<a href="..." target="_blank">xxxxxxx</a>
target="_self"
flyfish3300 2009-05-13
  • 打赏
  • 举报
回复
本窗口打开
将Target属性设置为"_self"
新窗口打开
将Target属性设置为"_blank"

很正确
怎么让iframe内的链接打开在父窗口或者新标签页解决办法是使用标签,在iframe的内容中.注意的是需要把这个标签放在任何href或者src等标签之前,定义浏览器的行为.<iframe src=""> iframe>

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧