The OpenD Programming Language

ICoreWebView2ScriptDialogOpeningEventArgs

Undocumented in source.

Members

Functions

Accept
HRESULT Accept()

The host may run this to respond with **OK** to confirm, prompt, and beforeunload dialogs. Do not run this method to indicate cancel. From JavaScript, this means that the confirm and beforeunload function returns TRUE if Accept is run. And for the prompt function it returns the value of ResultText if Accept is run and otherwise returns FALSE.

GetDeferral
HRESULT GetDeferral(ICoreWebView2Deferral* deferral)

Returns an ICoreWebView2Deferral object. Use this operation to complete the event at a later time.

get_DefaultText
HRESULT get_DefaultText(LPWSTR* defaultText)

The second parameter passed to the JavaScript prompt dialog. The result of the prompt JavaScript function uses this value as the default value.

get_Kind
HRESULT get_Kind(COREWEBVIEW2_SCRIPT_DIALOG_KIND* kind)

The kind of JavaScript dialog box. alert, confirm, prompt, or beforeunload.

get_Message
HRESULT get_Message(LPWSTR* message)

The message of the dialog box. From JavaScript this is the first parameter passed to alert, confirm, and prompt and is empty for beforeunload.

get_ResultText
HRESULT get_ResultText(LPWSTR* resultText)

The return value from the JavaScript prompt function if Accept is run. This value is ignored for dialog kinds other than prompt. If Accept is not run, this value is ignored and FALSE is returned from prompt.

get_Uri
HRESULT get_Uri(LPWSTR* uri)

The URI of the page that requested the dialog box.

put_ResultText
HRESULT put_ResultText(LPCWSTR resultText)

Sets the ResultText property.

Meta