Table of Contents
- Getting Started
- EO.Pdf
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
- .NET API Reference
- EO.Base
- EO.Base.UI
- EO.Extensions
- EO.Pdf
- EO.Pdf.Acm
- EO.Pdf.Contents
- EO.Pdf.Drawing
- EO.Pdf.Mvc
- EO.Web
- EO.WebBrowser
- EO.WebBrowser
- Classes
- AfterPrintEventArgs Class
- BeforeContextMenuEventArgs Class
- BeforeDownloadEventArgs Class
- BeforeNavigateEventArgs Class
- BeforePrintEventArgs Class
- BeforeRequestLoadEventArgs Class
- BrowserObject Class
- CertificateErrorEventArgs Class
- CommandEventArgs Class
- CommandIds Class
- ConsoleMessageEventArgs Class
- ContextMenu Class
- ContextMenuInfo Class
- DOMNodeEventArgs Class
- DOMNodeInfo Class
- DownloadEventArgs Class
- DownloadItem Class
- DownloadResult Class
- FileDialogEventArgs Class
- FindSession Class
- Frame Class
- FrameEventArgs Class
- FullscreenModeChangedArgs Class
- GiveFocusEventArgs Class
- JSDialogEventArgs Class
- JSException Class
- JSExtInvokeArgs Class
- JSFunction Class
- JSInvokeException Class
- JSNull Class
- JSObject Class
- JSRealObject Class
- JSUndefined Class
- LaunchUrlEventArgs Class
- LoadCompletedEventArgs Class
- LoadFailedEventArgs Class
- MenuItem Class
- MenuItemCollection Class
- NavigationTask Class
- NeedClientCertificateEventArgs Class
- NeedCredentialsEventArgs Class
- NewWindowEventArgs Class
- PostDataCollection Class
- PostDataItem Class
- PreloadTask Class
- RawBitmapData Class
- RenderUnresponsiveEventArgs Class
- Request Class
- RequestCanceledException Class
- RequestEventArgs Class
- RequestPermissionEventArgs Class
- ResourceHandler Class
- ResourceHandlerContext Class
- Response Class
- ResponseEventArgs Class
- Runtime Class
- ScriptTask Class
- ScriptTaskDoneEventArgs Class
- Shortcut Class
- ShouldForceDownloadEventArgs Class
- SSLStatus Class
- ThreadRunner Class
- WebView Class
- WebView Class
- WebView Members
- WebView Constructor
- Properties
- Methods
- Methods
- Capture Method
- CaptureRaw Method
- Close Method
- CloseDebugUI Method
- Create Method
- Destroy Method
- DoEvents Method
- Download Method
- DownloadWithResult Method
- EvalScript Method
- ExecCommand Method
- ExitFullscreenMode Method
- GetContentAreaSize Method
- GetDefaultPrinterSettings Method
- GetDOMWindow Method
- GetHtml Method
- GetPageSize Method
- GetScrollOffset Method
- GetSource Method
- GetSSLStatus Method
- GetText Method
- GoBack Method
- GoForward Method
- HideDevTools Method
- InvokeFunction Method
- LoadHtml Method
- LoadHtmlAndWait Method
- LoadRequest Method
- LoadRequestAndWait Method
- LoadUrl Method
- LoadUrlAndWait Method
- Preload Method
- Print Method
- QueueScriptTask Method
- RegisterJSExtensionFunction Method
- RegisterResourceHandler Method
- Reload Method
- Resize Method
- RunLater Method
- SendChar Method
- SendKeyEvent Method
- SendMouseEvent Method
- SetFocus Method
- SetOptions Method
- SetScrollOffset Method
- ShowDebugUI Method
- ShowDevTools Method
- StartFindSession Method
- StopLoad Method
- UnregisterResourceHandler Method
- Events
- WebViewClosedEventArgs Class
- WebViewClosingEventArgs Class
- WebViewTask Class
- Interfaces
- Enumerations
- Delegates
- EO.WebBrowser.DOM
- EO.WebEngine
- EO.WinForm
- EO.Wpf
- EO.Wpf.Gauge
- EO.Wpf.Gauge.Shapes
- EO.Wpf.Primitives
- EO.Wpf.Themes.Aero
- EO.Wpf.Themes.Classic
- EO.Wpf.Themes.Luna
- EO.Wpf.Themes.Metro
- EO.Wpf.Themes.Royale
- JavaScript API Reference
- .NET API Reference
WebView.EvalScript Method (String, String, Boolean) |
Execute JavaScript code in a frame.
Parameters
- code
- The JavaScript code to be executed.
- frameName
- The name of the frame in which the code to be executed. Pass null to execute the code in the main frame.
- throwOnError
- Set to true if to throw an JSException when an exception occurred while executing the JavaScript code.
Return Value
-
The result value of the JavaScript code. See remark section for more details.
When throwOnError is false, the JSException object will not be thrown. However you can access the exception object through LastJSException, through which you can obtain more information about the JavaScript exception.
When a JavaScript value is returned to the .NET code through this function, primitive JavaScript values are automatically converted to their corresponding .NET types. For example, a JavaScrit string will be converted to a System.String object. For non-primitive values, a value of type JSObject is returned. Note that the return value maybe of type that derives from JSObject. For example, a JavaScript array will be returned as an object array.
See here for more information on how to use this function.