Platforms to show: All Mac Windows Linux Cross-Platform

Back to ChromiumBrowserMBS class.

ChromiumBrowserMBS.CanGoBack as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Returns true if the browser can navigate backwards.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
MsgBox str(m.CanGoBack)
ChromiumBrowserMBS.CanGoForward as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Returns true if the browser can navigate forwards.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
MsgBox str(m.CanGoForward)
ChromiumBrowserMBS.ClearFocus
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 15.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Clears focus.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ClearFocus
ChromiumBrowserMBS.ClearHistory   Deprecated
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Clear the back/forward browsing history.
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
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Explicitly close the developer tools window if one exists for this browser instance.
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
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: The private constructor.
ChromiumBrowserMBS.Destructor
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: The destructor.
ChromiumBrowserMBS.ExecuteJavaScript(jsCode as string, scriptUrl as string = "", startLine as Integer = 0)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.4 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Execute a string of JavaScript code in this frame.
Example:
// go back to last page via javascript
dim b as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
b.ExecuteJavaScript "window.history.back();"
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.
ChromiumBrowserMBS.Find(identifier as Integer, searchText as string, forward as boolean, MatchCase as boolean, FindNext as boolean)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Search for searchText.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.Find 1, "Hello", true, false, false

// later
m.Find 1, "Hello", true, false, true
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.
ChromiumBrowserMBS.Frame(ID as Int64) as ChromiumFrameMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 17.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Returns the frame with the specified identifier, or nil if not found.
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
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Returns the frame with the specified name, or nil if not found.
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()
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 17.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Queries list of frame identifiers.
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()
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 17.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Queries list of frame names.
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
Notes: Often frames are unnamed, so named is generic.
ChromiumBrowserMBS.GoBack
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Navigate backwards.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.GoBack
ChromiumBrowserMBS.GoForward
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Navigate forwards.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.GoForward
ChromiumBrowserMBS.HidePopup   Deprecated
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Hide the currently visible popup, if any.
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
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Get the raw image data contained in the specified element without performing validation.
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
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Invalidate the rectangle region of the view.
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
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Checks loading state.
Notes:
Returns true while page is loading.
Only available for Xojo 2017 and newer.
ChromiumBrowserMBS.Release
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 15.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Releases the browser object.
Notes:
You don't need this normally.
This method can be used for working around Feedback case 33565.
ChromiumBrowserMBS.Reload
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Reload the current page.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.Reload
ChromiumBrowserMBS.ReloadIgnoreCache
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Reload the current page ignoring any cached data.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ReloadIgnoreCache
ChromiumBrowserMBS.Retain
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 15.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Retains the browser object.
Notes: You don't need this normally.
ChromiumBrowserMBS.SetFocus(enableFocus as boolean = true)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Set focus for the browser window.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.SetFocus
Notes: If enable is true focus will be set to the window. Otherwise, focus will be removed.
ChromiumBrowserMBS.setSize(width as Integer, height as Integer)   Deprecated
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Set the size of the specified element.
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
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Open developer tools in its own window.
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)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Cancel all searches that are currently going on.
ChromiumBrowserMBS.StopLoad
Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Stop loading the page.
Example:
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.StopLoad

The items on this page are in the following plugins: MBS Win Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...


Start Chat