www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 APPLICATION Attribute
APPLICATION Attribute

Indicates whether the content of the object is an HTML Application (HTA), which is exempt from the browser security model.

Syntax

HTML <ELEMENT APPLICATION=bApplication ... >
ScriptingN/A

Possible Values

bApplicationA Boolean that specifies whether the content is trusted or untrusted based on the browser security model.
noDefault. Browser security rules for unsafe content are applied; all content of the frame or iframe is untrusted.
yesAll content of the frame or iframe is trusted.

Remarks

The APPLICATION attribute can be used only in HTAs.

You can use the APPLICATION attribute to control the content of your Web pages. For example, you can use the attribute to create an HTA that has one frame to access unsafe content, such as Internet URLs, and another frame to access safe content. You can also use the attribute for cross-domain scripting between HTA-enabled frames.

A nested frame or iframe requires that each container frame is HTA-enabled, so that the innermost frame or iframe is considered safe. For example, an iframe contains a frameset. The iframe has a value of APPLICATION="yes". Each frame within the frameset qualifies as a nested frame. For the innermost frame to be considered safe, that frame and each parent frame must be declared as APPLICATION="yes".

HTAs are designed to prevent each untrusted HTML frame and iframe from having script access to the HTA that contains them. In a frame that is not HTA-enabled, the highest-level frame comprises the top window for each frame that it contains. The window.top and window.self are the same for that frame. In addition, an unsafe frame or iframe does not receive a referrer or an opener URL from the parent HTA. This means a frame or an iframe is not affected by the parent window of the container HTA.

Standards Information

There is no public standard that applies to this attribute.

Applies To

FRAME, IFRAME

See Also

Introduction to HTML Applications (HTAs), HTML Applications Reference
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG