标记"target"是什么作用?

liuzq 2002-10-01 11:06:11
标记"target"是什么作用?
...全文
79 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
griefforme 2002-10-01
  • 打赏
  • 举报
回复
都说完了。。。

不用我再说了吧。。。

呵呵。。。
possible_Y 2002-10-01
  • 打赏
  • 举报
回复
链接转向的目标窗口
alexxing 2002-10-01
  • 打赏
  • 举报
回复
作用:
指定本操作的目标窗口,例如指定 <a href=...> 在哪个窗口中打开目标链接页面

用法:
<a href="xxx.htm" target=...>
<form action="xxx.php" target=...>
<base target=...>
<area target=...>

取值:
_blank - 新窗口
_self - 本窗口
_parent - 父窗口
_top - 顶级窗口
_search - IE5 以上:搜索窗口
WinName - 名字为 WinName 的指定窗口,此 WinName 为 window.open 打开窗口时设定:
window.open("xxx.htm", "WinName", ...)


saucer 2002-10-01
  • 打赏
  • 举报
回复
"target" is used to redirect an action to another window, for example

<a href="http://www.csdn.net" target="_blank">CSDN</a>

if you click on CSDN, a new window will open, without the target, csdn page will open in the same window

87,907

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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