Platforms to show: All Mac Windows Linux Cross-Platform
Back to ChromiumBrowserMBS class.
ChromiumBrowserMBS.CanGoBack as boolean
Function:
Returns true if the browser can navigate backwards.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
MsgBox str(m.CanGoBack)
ChromiumBrowserMBS.CanGoForward as boolean
Function:
Returns true if the browser can navigate forwards.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
MsgBox str(m.CanGoForward)
ChromiumBrowserMBS.ClearFocus
Function:
Clears focus.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 15.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ClearFocus
ChromiumBrowserMBS.ClearHistory Deprecated
Function:
Clear the back/forward browsing history.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ClearHistory
This item is deprecated and should no longer be used.
Notes:
Only supported for Chromium 2.x, but not 3.x.
ChromiumBrowserMBS.CloseDevTools Deprecated
Function:
Explicitly close the developer tools window if one exists for this browser instance.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.CloseDevTools
This item is deprecated and should no longer be used.
Notes:
Only supported for Chromium 2.x, but not 3.x.
ChromiumBrowserMBS.Constructor Private
Function:
The private constructor.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
ChromiumBrowserMBS.Destructor
Function:
The destructor.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
ChromiumBrowserMBS.ExecuteJavaScript(jsCode as string, scriptUrl as string = "", startLine as Integer = 0)
Function:
Execute a string of JavaScript code in this frame.
Example:
Notes:
The scriptUrl parameter is the URL where the script in question can be found, if any. The renderer may request this URL to show the developer the source of the error. The startLine parameter is the base line number to use for error reporting.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
// go back to last page via javascript
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
b.ExecuteJavaScript "window.history.back();"
ChromiumBrowserMBS.Find(identifier as Integer, searchText as string, forward as boolean, MatchCase as boolean, FindNext as boolean)
Function:
Search for searchText.
Example:
Notes:
Identifier can be used to have multiple searches running simultaniously. forward indicates whether to search forward or backward within the page. matchCase indicates whether the search should be case-sensitive. findNext indicates whether this is the first request or a follow-up.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.Find 1, "Hello", true, false, false
// later
m.Find 1, "Hello", true, false, true
ChromiumBrowserMBS.Frame(ID as Int64) as ChromiumFrameMBS
Function:
Returns the frame with the specified identifier, or nil if not found.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 17.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
if b<>Nil then
dim idn() as Int64= b.FrameIdentifiers
dim ids() as string
for each n as Int64 in idn
dim f as ChromiumFrameMBS = b.Frame(n)
ids.Append str(n)+" "+f.Name
next
MsgBox "FrameIdentifiers: "+EndOfLine+EndOfLine+Join(ids, EndOfLine)
end if
See also:
ChromiumBrowserMBS.Frame(name as string) as ChromiumFrameMBS
Function:
Returns the frame with the specified name, or nil if not found.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
dim f as ChromiumFrameMBS = b.Frame("TopFrame")
dim s as string = f.Name
MsgBox s
See also:
ChromiumBrowserMBS.FrameIdentifiers as Int64()
Function:
Queries list of frame identifiers.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 17.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
if b<>Nil then
dim idn() as Int64= b.FrameIdentifiers
dim ids() as string
for each n as Int64 in idn
dim f as ChromiumFrameMBS = b.Frame(n)
ids.Append str(n)+" "+f.Name
next
MsgBox "FrameIdentifiers: "+EndOfLine+EndOfLine+Join(ids, EndOfLine)
end if
ChromiumBrowserMBS.FrameNames as String()
Function:
Queries list of frame names.
Example:
Notes:
Often frames are unnamed, so named is generic.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 17.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
if b<>Nil then
dim Names() as string = b.FrameNames
MsgBox "FrameNames: "+EndOfLine+EndOfLine+Join(Names, EndOfLine)
end if
ChromiumBrowserMBS.GoBack
Function:
Navigate backwards.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.GoBack
ChromiumBrowserMBS.GoForward
Function:
Navigate forwards.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.GoForward
ChromiumBrowserMBS.HidePopup Deprecated
Function:
Hide the currently visible popup, if any.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.HidePopup
This item is deprecated and should no longer be used.
Notes:
Only supported for Chromium 2.x, but not 3.x.
ChromiumBrowserMBS.Image(width as Integer, height as Integer) as Picture Deprecated
Function:
Get the raw image data contained in the specified element without performing validation.
Example:
The specified width and height dimensions must match the current element size.
Only supported for Chromium 2.x, but not 3.x.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
dim p as picture = m.Image(600, 800)
window1.backdrop = p
This item is deprecated and should no longer be used.
Notes:
The specified width and height dimensions must match the current element size.
Only supported for Chromium 2.x, but not 3.x.
ChromiumBrowserMBS.invalidate(x as Integer, y as Integer, width as Integer, height as Integer) Deprecated
Function:
Invalidate the rectangle region of the view.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.invalidate 0, 0, 600, 800
This item is deprecated and should no longer be used.
Notes:
This function is only used when window rendering is disabled and will result in a call to HandlePaint().
ChromiumBrowserMBS.IsLoading as boolean
Function:
Checks loading state.
Notes:
Returns true while page is loading.
Only available for Xojo 2017 and newer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 17.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes:
Returns true while page is loading.
Only available for Xojo 2017 and newer.
ChromiumBrowserMBS.Release
Function:
Releases the browser object.
Notes:
You don't need this normally.
This method can be used for working around Feedback case 33565.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 15.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes:
You don't need this normally.
This method can be used for working around Feedback case 33565.
ChromiumBrowserMBS.Reload
Function:
Reload the current page.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.Reload
ChromiumBrowserMBS.ReloadIgnoreCache
Function:
Reload the current page ignoring any cached data.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ReloadIgnoreCache
ChromiumBrowserMBS.Retain
Function:
Retains the browser object.
Notes: You don't need this normally.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 15.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes: You don't need this normally.
ChromiumBrowserMBS.SetFocus(enableFocus as boolean = true)
Function:
Set focus for the browser window.
Example:
Notes:
If enable is true focus will be set to the window. Otherwise, focus will be removed.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.SetFocus
ChromiumBrowserMBS.setSize(width as Integer, height as Integer) Deprecated
Function:
Set the size of the specified element.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.setSize 600, 800
This item is deprecated and should no longer be used.
Notes:
Only supported for Chromium 2.x, but not 3.x.
ChromiumBrowserMBS.ShowDevTools Deprecated
Function:
Open developer tools in its own window.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ShowDevTools
This item is deprecated and should no longer be used.
Notes:
Only supported for Chromium 2.x, but not 3.x.
ChromiumBrowserMBS.StopFinding(clearSelection as boolean)
Function:
Cancel all searches that are currently going on.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
ChromiumBrowserMBS.StopLoad
Function:
Stop loading the page.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 14.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.StopLoad
The items on this page are in the following plugins: MBS Win Plugin.
