Share via


EnableHtmlAccess Property

Gets whether the hosted content in the Silverlight plug-in has access to the browser Document Object Model (DOM).

Scripting (Instantiation)
Silverlight.CreateObject(,,,{enableHtmlAccess:'booleanValue'})
-or-
Silverlight.CreateObjectEx({properties:{enableHtmlAccess:'booleanValue'}})
Scripting (Runtime)
booleanValue = silverlightObject.settings.EnableHtmlAccess

Property Value

Boolean

Determines whether the hosted content has access to the browser DOM.

The default value is true.

Remarks

This property is not relevant for Silverlight 1.0. In Silverlight 1.0, the Silverlight object model always has access to the browser DOM. This parameter exists for use by Silverlight 1.1 Alpha versions.

This property is available on the settings sub-object of a Silverlight plug-in instance.

Applies To

Silverlight Plug-in

See Also

Silverlight Object Models and Scripting to the Silverlight Plug-in
Silverlight 1.0 Architecture