MonobjcMonobjc Documented Class Library
WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrame Method (sender, prompt, defaultText, frame)
NamespacesMonobjc.WebKitIWebUIDelegateWebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrame(WebView, NSString, NSString, WebFrame)

Displays a JavaScript text input panel and returns the entered text.

Original signature is '- (NSString *)webView:(WebView *)sender runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(NSString *)defaultText initiatedByFrame:(WebFrame *)frame'

Available in Mac OS X v10.4.11 and later.

Declaration Syntax
C#Visual BasicVisual C++
NSString WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrame(
	WebView sender,
	NSString prompt,
	NSString defaultText,
	WebFrame frame
)
Function WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrame ( _
	sender As WebView, _
	prompt As NSString, _
	defaultText As NSString, _
	frame As WebFrame _
) As NSString
NSString^ WebViewRunJavaScriptTextInputPanelWithPromptDefaultTextInitiatedByFrame(
	WebView^ sender, 
	NSString^ prompt, 
	NSString^ defaultText, 
	WebFrame^ frame
)
Parameters
sender (WebView)
The web view that sent the message.
prompt (NSString)
The message to display in the text input panel.
defaultText (NSString)
Default placeholder text to display in the text field.
frame (WebFrame)
The web frame whose JavaScript initiated this call.
Return Value
The text entered by the user if the user clicks OK; otherwise, nil.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.WebKit (Module: Monobjc.WebKit)