郁闷了

thriller123 2004-05-05 09:34:57
假设有一个框架网页分为A,B两个框架,如果我A框架网页里做了一个超链接,那么被链接的网页只是显示在A框架里,但我想要的是把被链接的网页显示在整个窗口里,大家有什么好办法吗?
...全文
9 3 点赞 打赏 收藏 举报
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
dullwolf 2004-05-05
TARGET Attribute | target Property

--------------------------------------------------------------------------------

Sets or retrieves the window or frame at which to target content.

What's New for Microsoft® Internet Explorer 6
As of Internet Explorer 6, the _media value of the v parameter of this property specifies that a linked document loads in the HTML content area of the Media Bar.

Syntax

HTML <ELEMENT TARGET = sTarget... >
Scripting object.target [ = sTarget ]

Possible Values

sTarget String that specifies or receives one of the following values.name The name of the target window or frame.
_blank Load the linked document into a new blank window. This window is not named.
_media Load the linked document into the HTML content area of the Media Bar. Available in Internet Explorer 6 or later.
_parent Load the linked document into the immediate parent of the document the link is in.
_search Load the linked document into the browser search pane. Available in Internet Explorer 5 or later.
_self Default. Load the linked document into the window in which the link was clicked (the active window).
_top Load the linked document into the topmost window.


The property is read/write. The property has a default value of _self.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

If there is no existing window or frame with the same name as specified in the target, a new window is opened with a name equal to the value of the target.

The window name is an optional argument in the open scripting method.

Example

This example uses the TARGET attribute to specify a link that loads the page into the topmost frame of the current frameset.

<A HREF="newpage.htm" TARGET="_top">Go to New Page.</A>
Standards Information

This property is defined in HTML 4.0 and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .

Applies To

[ Object Name ]
Platform Version
Win16:
Win32:
Windows CE:
Unix:
Mac:
Version data is listed when the mouse hovers over a link, or the link has focus.
A, AREA, BASE, FORM, LINK
Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. Internet Explorer does not expose this member on platforms that are not listed.


--------------------------------------------------------------------------------

© 2003 Microsoft Corporation. All rights reserved.
  • 打赏
  • 举报
回复
mao1997 2004-05-05
<a href="http://www.baidu.com" target="_parent">index</a>
  • 打赏
  • 举报
回复
wanghr100 2004-05-05
<a href="http://www.baidu.com" target="_top">index</a>
  • 打赏
  • 举报
回复
相关推荐
发帖
JavaScript
加入

8.5w+

社区成员

Web 开发 JavaScript
申请成为版主
帖子事件
创建了帖子
2004-05-05 09:34
社区公告
暂无公告