HBCMS更多的中文手册参考:

APPLICATION Attribute

DHTML文档教程

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

dhtml语法

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

DHTML可能的值

bApplicationBoolean that specifies whether the content is trusted or untrusted based on the browser security model.
noDefault. Browser security rules for unsafe content are applied; thus, 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 that accesses unsafe content, such as internet urls, and another frame that accesses safe content. you can also use the attribute for cross-domain scripting between hta-enabled frames.

a nested frame or iframe requires each container frame to be hta-enabled (for example, application="yes") for the innermost frame or iframe to accept the value of application="yes". take, for instance, an iframe that contains a frameset. each frame within the frameset qualifies as being nested. for the innermost frame to be considered safe, it 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 the case of a non-hta-enabled frame, 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 receives neither a referrer nor an opener url from the parent hta. this means frame or iframe is not affected by the parent window of the containing hta.

是否符合公共标准

There is no public standard that applies to this attribute.

Applies To

FRAME, IFRAME

更多语法参考

introduction to html applications (htas), HTML Applications Reference