classafReflux::Browser
sys::Obj fwt::Widget fwt::Pane afReflux::Browser
(Widget) - A HTML and web browser widget. Browser is a drop in replacement for the standard FWT WebBrowser with the following enhancements:
- Javascript support
- Title and status text support
- WebBrowserbug fixes - see Topic #2069
Use the html and url fields to load content into the browser:
browser.html = "<html><body>Fantom-Factory<body></html>" browser.url = `http://www.fantomfactory.org/`
See SWT Browser
- back
- This back()- Navigate to the previous session history. 
- evaluate
- Returns the result, if any, of executing the specified script. - The the last Javascript statement should be a - returnstatement:- browser.evaluate("alert('Hello Mum!'); return document.title;")
- execute
- Executes the specified script. If document-defined functions or properties are accessed by the script then this method should not be invoked until the document has finished loading. - browser.execute("alert('Hello Mum!');")- Throws - Errif the script did not complete successfully.
- forward
- This forward()- Navigate to the next session history. 
- html
- Str? html- Gets / sets the HTML in the current page. - browser.html = "<html><body>Fantom-Factory<body></html>" 
- javascriptEnabled
- Bool javascriptEnabled- Whether javascript is enabled in the browser. Note this only affects pages loaded after the value is set. 
- onHyperlink
- EventListeners onHyperlink()- Callback when the user clicks a hyperlink. The callback is invoked before the actual hyperlink. The event handler can modify the - datafield with a new URI or set to- nullto cancel the hyperlink.- Event id fired: - EventId.hyperlink
 - Event fields: - Event.data: the sys::Uri of the new page.
 
- onLoad
- EventListeners onLoad()- Callback when the page loading is complete. DOM elements should be available for Javascript interaction at this time. - Event id fired: - EventId.unknown
 
- onStatusText
- EventListeners onStatusText()- Callback when the status bar text changes. - Event id fired: - EventId.unknown
 - Event fields: - Event.data: the status bar text.
 
- onTitleText
- EventListeners onTitleText()- Callback when the title text is available or is modified. - Event id fired: - EventId.unknown
 - Event fields: - Event.data: the title text.
 
- refresh
- This refresh()- Refresh the current page. 
- stop
- This stop()- Stop any load activity. 
- url
- Uri? url- Gets / sets the URL loaded in the browser. - browser.url = `http://www.fantomfactory.org/`