target=“_parent”

本文详细解释了网页链接中的目标属性及其作用,包括如何使用不同的值如_self、_blank、_parent、_top等来控制链接加载的位置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

Target Attribute

Internet Development Index

 

Defines a frame or window that a URL is displayed in. Read/write String.

Applies To

Shape

Tag Syntax

 

<v:element target="expression">

Remarks

The Target attribute is similar to the standard HTML Target attribute of anchors.

Values include:

ValueDescription
TargetNameString containing the name of the frame or window in which to load the document.
_blankSpecifies that the linked document is loaded into a new blank window. This window is not named.
_mediaSpecifies that the linked document is loaded into the Media Bar. Available in Microsoft® Internet Explorer 6 or later.
_parentSpecifies that the linked document is loaded into the immediate parent of the document containing the link.
_searchSpecifies that the linked document is loaded into the browser's search pane. Available in Microsoft Internet Explorer 5 or greater.
_selfSpecifies that the linked document is loaded into the window in which the link was clicked (the active window).
_topSpecifies that the linked document is loaded into the topmost window.

简单的说:

_blank -- 在新窗口中打开链接 
_parent -- 在父窗体中打开链接 
_self -- 在当前窗体打开链接,此为默认值 
_top -- 在当前窗体打开链接,并替换当前的整个窗体(框架页) 

 

_blank 浏览器会另开一个新窗口显示链接

_self,在同一框架或窗口中打开所链接的文档。此参数为默认值,通常不用指定。 

_parent,将链接的文件载入含有该链接框架的父框架集或父窗口中。如果含有该链接的框架不是嵌套的
,则在浏览器全屏窗口中载入链接的文件,就象_self参数一样。

_top,在当前的整个浏览器窗口中打开所链接的文档,因而会删除所有框架。

_search 在浏览器的搜索区装载文档,注意,这个功能只在Internet Explorer 5 或者更高版本中适用。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值