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
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
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
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
This item is deprecated and should no longer be used.
Clear the back/forward browsing history.
Example
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ClearHistory

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
This item is deprecated and should no longer be used.
Explicitly close the developer tools window if one exists for this browser instance.
Example
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.CloseDevTools

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
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
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
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();"

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
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

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
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
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
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
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

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
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
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
This item is deprecated and should no longer be used.
Hide the currently visible popup, if any.
Example
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.HidePopup

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
This item is deprecated and should no longer be used.
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

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
This item is deprecated and should no longer be used.
Invalidate the rectangle region of the view.
Example
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.invalidate 0, 0, 600, 800

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
Checks loading state.

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
Releases the browser object.

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
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
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
Retains the browser object.

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
Set focus for the browser window.
Example
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.SetFocus

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
This item is deprecated and should no longer be used.
Set the size of the specified element.
Example
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.setSize 600, 800

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
This item is deprecated and should no longer be used.
Open developer tools in its own window.
Example
dim m as ChromiumBrowserMBS = HTMLViewer1.ChromiumBrowserMBS
m.ShowDevTools

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
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
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.


The biggest plugin in space...