WebKit2.ScriptDialog.prototype.prompt_set_text
function prompt_set_text(text: String): void { // Gjs wrapper for webkit_script_dialog_prompt_set_text() }
This method is used for WebKit2.ScriptDialogType.prompt dialogs when WebKit2.WebView::script-dialog signal is emitted to set the text entered by the user. The default implementation of WebKit2.WebView::script-dialog signal sets the text of the entry form when OK button is clicked, otherwise null is set. It's an error to use this method with a WebKit2.ScriptDialog that is not of type WebKit2.ScriptDialogType.prompt.
- text
the text to set