IHTMLScriptElement::defer Property

Sets or retrieves the status of the script.

Syntax


HRESULT IHTMLScriptElement::get_defer(VARIANT_BOOL *p);HRESULT IHTMLScriptElement::put_defer(VARIANT_BOOL v);

Parameters

p
Pointer to a variable of type VARIANT_BOOL that receives one of the values listed in Possible Values.
v
VARIANT_BOOL that specifies one of the values listed in Possible Values.

Possible Values

VARIANT_FALSE Default. Inline executable function is not deferred.
VARIANT_TRUE Inline executable function is deferred.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Using the attribute at design time can improve the download performance of a document because the client does not need to parse and execute the script and can continue downloading and parsing the document instead.

Community Additions

ADD
Show:
© 2015 Microsoft