`

html targer 问题

    博客分类:
  • HTML
阅读更多
Except for the reserved names listed below, frame target names (%FrameTarget; in the DTD) must begin with an alphabetic character (a-zA-Z). User agents should ignore all other target names.

The following target names are reserved and have special meanings.

  • _blank
  • The user agent should load the designated document in a new, unnamed window.
  • _self
  • The user agent should load the document in the same frame as the element that refers to this target.
  • _parent
  • The user agent should load the document into the immediate FRAMESET parent of the current frame. This value is equivalent to _self if the current frame has no parent.
  • _top
  • The user agent should load the document into the full, original window (thus canceling all other frames). This value is equivalent to _self if the current frame has no parent.

16.3 Specifying target frame information
Note. For information about current practice in determining the target of a frame, please consult the notes on frames in the appendix.

Attribute definitions

target = frame-target [CI]
This attribute specifies the name of a frame where a document is to be opened.
By assigning a name to a frame via the name attribute, authors can refer to it as the "target" of links defined by other elements. The target attribute may be set for elements that create links (A, LINK), image maps (AREA), and forms (FORM).
Please consult the section on target frame names for information about recognized frame names.

This example illustrates how targets allow the dynamic modification of a frame's contents. First we define a frameset in the document frameset.html, shown here:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>A frameset document</TITLE>
</HEAD>
<FRAMESET rows="50%,50%">
   <FRAME name="fixed" src="init_fixed.html">
   <FRAME name="dynamic" src="init_dynamic.html">
</FRAMESET>
</HTML>

Then, in init_dynamic.html, we link to the frame named "dynamic".

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>A document with anchors with specific targets</TITLE>
</HEAD>
<BODY>
...beginning of the document...
<P>Now you may advance to 
    <A href="slide2.html" target="dynamic">slide 2.</A>
...more document...
<P>You're doing great. Now on to
    <A href="slide3.html" target="dynamic">slide 3.</A>
</BODY>
</HTML>

Activating either link opens a new document in the frame named "dynamic" while the other frame, "fixed", maintains its initial contents.

Note. A frameset definition never changes, but the contents of one of its frames can. Once the initial contents of a frame change, the frameset definition no longer reflects the current state of its frames.

There is currently no way to encode the entire state of a frameset in a URI. Therefore, many user agents do not allow users to assign a bookmark to a frameset.

Framesets may make navigation forward and backward through your user agent's history more difficult for users.

16.3.1 Setting the default target for links
When many links in the same document designate the same target, it is possible to specify the target once and dispense with the target attribute of each element. This is done by setting the target attribute of the BASE element.

We return to the previous example, this time factoring the target information by defining it in the BASE element and removing it from the A elements.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>A document with BASE with a specific target</TITLE>
<BASE href="http://www.mycom.com/Slides" target="dynamic">
</HEAD>
<BODY>
...beginning of the document...
<P>Now you may advance to <A href="slide2.html">slide 2.</A>
...more document...
<P>You're doing great. Now on to 
       <A href="slide3.html">slide 3.</A>
</BODY>
</HTML>

16.3.2 Target semantics
User agents should determine the target frame in which to load a linked resource according to the following precedences (highest priority to lowest):

If an element has its target attribute set to a known frame, when the element is activated (i.e., a link is followed or a form is processed), the resource designated by the element should be loaded into the target frame.
If an element does not have the target attribute set but the BASE element does, the BASE element's target attribute determines the frame.
If neither the element nor the BASE element refers to a target, the resource designated by the element should be loaded into the frame containing the element.
If any target attribute refers to an unknown frame F, the user agent should create a new window and frame, assign the name F to the frame, and load the resource designated by the element in the new frame.
User agents may provide users with a mechanism to override the target attribute.[/b][/color]
分享到:
评论

相关推荐

    TwinCAT HMI Targer Visu CE

    TwinCAT HMI Targer Visu CE是Beckhoff基于WinCE平台的HMI,它集成在 TwinCAT PLC中。

    targer:Web应用程序标记和检索文本中的参数

    目标:轻而易举地挖掘神经参数 该页面包含基于神经的Web应用程序和Web服务的代码。 下图说明了该系统的外观:您可以在输入框中输入一些文本,并使用一种用于参数挖掘的预先训练的神经模型来检测其中的参数。...

    TwinCAT Target VisuCE使用说明.pdf

    ### TwinCAT Target VisuCE 使用说明详解 #### 一、概述 TwinCAT HMI Target Visu CE 是 Beckhoff 公司基于 Windows CE (WinCE) 平台的一款人机界面 (HMI) 解决方案。它被集成到 TwinCAT PLC 控制系统中,为用户...

    Embedded Image Processing on the TMS320C6000™ DSP

    基于给定文件的信息,以下是对相关知识点的详细说明: 一、数字信号处理器(DSP)和TMS320C6000™ DSP平台 数字信号处理器(DSP)是专门设计用于高效执行数字信号处理算法的微处理器。DSP的架构通常具有高度优化的...

    简谈jdk动态代理

    this.targer = targer; } @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object result = null; System.out.println("事务开始"); result = method....

    wxDatTrans.exe

    微信dat图片转换工具,放到C:\Users\用户\Documents\WeChat Files\微信id\FileStorage\Image 下双击执行,生成 targer文件夹

    operating-systems

    您可以通过在PR中添加“ Help Wanted标签来提出实施方面的问题 您的实施将根据以下条件进行评分: 代码质量 简单 您的个人参与 提交历史记录,大小,消息 试算表 团体 关联 821701 821702 821703 821704

    Webupload大文件分片上传完整版包含JAR包

    webupload的详细步骤参考博客地址:...PS:这个压缩包是我直接从eclipse中导出压缩的,war包呢在targer目录下也有,jar包工程里面也有。只是里面用到了pom.xml。去掉pom.xml把jar包自己导进来应该也是可以用的。

    最新Struts2+jq+ajax+json 学会总要4步‵‵超级简单,里面包含实例

    最新Struts2.3.8 + jquery + ajax + json 学会struts+jq+ajax+json只要4步‵‵经过作者的总结超级简单 1. 导入struts2 及json包 asm-3.3.jar ...如:json_targer.attributeName 访问attaributeName中的信息

    gulp-oss-up:用于上传静态文件到阿里云 oss 的 gulp 插件

    吞食用于上传静态文件到阿里云 oss 的 gulp 插件。 ##install npm install gulp-oss-up --save-dev ##用法 var gulp = require('gulp');var up = require('gulp-oss-up');...//your targer directory in the bu

    Delphi编程技巧集锦

    ### Delphi编程技巧集锦 #### 一、文件操作与管理 **1.... 在Delphi中,可以通过调用`CopyFile`函数来轻松地实现文件的复制功能。...通过实践这些技术,您可以在Delphi开发过程中解决各种实际问题。

    Keil uVision4 第一个工程的建立和环境设置

    10. 在“Utilities”选项卡需要改动的部分是 Use Targer Driver for Flash Programming和 Update Target befor Debugging。 通过以上步骤,我们已经成功建立了一个 Keil uVision4 工程,并进行了环境设置。这个工程...

    Delphi常用代码汇总

    【Delphi常用代码汇总】是Delphi编程者必备的参考资料,包含了各种常见功能的实现代码,可以帮助程序员提高开发效率,解决日常开发中的问题。以下是一些关键知识点的详细说明: 1. **网络邻居复制文件**: 使用`...

    mysql在linux下日常管理维护

    mysql 数据库的备份是指将数据库中的数据复制到另一个介质上,以便在出现问题时能够快速恢复数据库。常见的备份方法包括mysqldump 命令和mysqlhotcopy 工具。 六、表检查修复 mysql 数据库中的表可能会出现损坏,...

    DELPHI的属性

    示例中展示了如何从本地文件`newfile.txt`复制到指定网络路径`//computername/direction/targer.txt`。 2. **鼠标拖动效果**: 通过`MouseMove`、`DragOver`和`EndDrag`事件,可以创建鼠标拖动的效果。在PANEL上,...

    ST MathWorks Embedded Coder Support.rar

    目前STM32-MAT/TARGER已经停产,ST推荐 MathWorks Embedded Coder Support。 MathWorks Embedded Coder Support 目前只支持 嵌入式编码器,面向ST Discovery和STM32F4xx(属于MATLAB & Simulink产品系列)。 安装好...

    全国城市乡镇sql脚本

    `targer_name_` varchar(255) DEFAULT NULL, `show_index_` int(9) DEFAULT NULL, `cid_` varchar(255) DEFAULT '' COMMENT '公司id', `city_name_` char(255) DEFAULT NULL COMMENT '城市名称', `city_id_` ...

    delphi属性汇总文档.doc

    ### Delphi 属性与功能汇总 #### 一、Delphi 中网络文件复制 **知识点概述:** 本节介绍如何在 Delphi 中利用 `ShellAPI` 单元来...通过掌握这些基本功能,开发者可以在 Delphi 应用程序开发中更加高效地解决问题。

    Delphi编程技巧集

    CopyFile(PChar('newfile.txt'), PChar('//computername/direction/targer.txt'), False); end; ``` **2. 获取Windows目录** - 通过调用`GetWindowsDirectory`函数来获取Windows的系统目录路径。 ```delphi ...

Global site tag (gtag.js) - Google Analytics