Share via


IBrowser2::get_ScriptingEnabled

The ScriptingEnabled property gets or sets a Boolean value indicating that JavaScript is enabled or disabled for the document currently displayed in the browser.

To get the value of the ScriptingEnabled property, call the property method described here.

To set the value of the ScriptingEnabled property, see the put_ScriptingEnabled property method.

Syntax

HRESULT get_ScriptingEnabled(
  VARIANT_BOOL * pbScriptingEnabled
);

Parameters

  • pbScriptingEnabled
    [out] Reference to a Boolean value; VARIANT_TRUE if JavaScript is enabled and VARIANT_FALSE if JavaScript is disabled.

Return Values

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

  • S_OK
    The method completed successfully.

Requirements

Pocket PC: Windows Mobile 2002 and later
OS Versions: Windows CE 4.0 and later
Header: webvw.h
Library: webvw.lib

See Also

IBrowser2

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.