Table of Contents

Method AddUserScript

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

AddUserScript(string, bool)

Injects the specified script into the webpage's content.

bool AddUserScript(string javascript, bool injectDocStart)

Parameters

javascript string

The javascript code to add.

injectDocStart bool

Specifies when the script will be executed.

Returns

bool

Returns true if the script was added successfully.

Remarks

Please note that this is unsupported by the IE backend. The Edge backend does only support injecting at document start.