Platforms to show: All Mac Windows Linux Cross-Platform

Back to IEWindowMBS class.

IEWindowMBS.Alert(Message as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Displays a dialog box containing an application-defined message.
Example
dim w as IEWindowMBS = HTMLViewer1.IEWindowMBS
w.Alert("Hello Alert!")

IEWindowMBS.Blur

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Causes the element to lose focus and fires the onblur event.

IEWindowMBS.Confirm(Message as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.
Example
dim w as IEWindowMBS = HTMLViewer1.IEWindowMBS

dim b as Boolean = w.Confirm("Like Xojo?")
Break

Message: that specifies the message to display in the confirmation dialog box.
If no value is provided, the dialog box does not contain a message.

The title bar of the confirmation dialog box cannot be changed.

IEWindowMBS.Constructor(DesktopHTMLViewer as DesktopHTMLViewer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 22.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Creates new web window object for this HTMLViewer.

For browser based on Internet Explorer on Windows.
Raises exception on failure.

See also:

IEWindowMBS.Constructor(HTMLViewer as HTMLViewer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Creates new web window object for this HTMLViewer.

For browser based on Internet Explorer on Windows.
Raises exception on failure.

See also:

IEWindowMBS.ExecScript(Code as string, language as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Executes the specified script in the provided language.
Example
dim w as IEWindowMBS = HTMLViewer1.IEWindowMBS

w.ExecScript("alert('Hello');", "JavaScript")

code: specifies the code to be executed.
language: specifies the language in which the code is executed. The language defaults to JScript.

Script executed through the execScript method can access all global variables available to the calling script. This can be useful when you want the functionality of another scripting language that would not otherwise be available in JScript, such as the Microsoft Visual Basic Scripting Edition (VBScript) MsgBox function.

IEWindowMBS.Frames as IEWindowMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 21.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Queries the collection of frames.
Example
Dim win As IEWindowMBS = HTMLViewer1.IEWindowMBS
Dim frames() As IEWindowMBS = win.Frames

For Each frame As IEWindowMBS In frames
Dim doc As IEDocumentMBS = frame.Document

Dim URL As String = doc.URL
Dim Name As String = doc.NameProp
Dim HTMLText As String = doc.HTMLText

Break // read in debugger
Next

MBS Plugin will return the window objects for each frame as an array.

IEWindowMBS.MoveBy(x as integer, y as integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Moves the screen position of the window by the specified x and y offset values.

x: long that specifies the horizontal scroll offset in pixels. The value can be either positive or negative.
y: long that specifies the vertical scroll offset in pixels. The value can be either positive or negative.

IEWindowMBS.MoveTo(x as integer, y as integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Moves the screen position of the upper-left corner of the window to the specified x and y position.

x: long that specifies the horizontal scroll offset in pixels. The value can be either positive or negative.
y: long that specifies the vertical scroll offset in pixels. The value can be either positive or negative.

IEWindowMBS.Navigate(URL as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Loads the specified URL to the current window.

URL: that specifies the URL to display.

IEWindowMBS.Print

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Opens the normal print dialog for the Internet Explorer.

Raises exception on failure.

IEWindowMBS.RunJavaScript(JavaScript as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Executes the specified script in the provided language.
Example
dim w as IEWindowMBS = HTMLViewer1.IEWindowMBS

w.RunJavaScript("alert('Hello');")

Same as ExecScript with language JavaScript.
Raises exception on failure.

The IE API does not allow to return values from Javascript. So you need to store your result in window.title and access it later using IETitleMBS.

IERunJavaScriptMBS fails if the htmlviewer is empty. You can load a dummy page like above.

You can use JavaScriptEngineMBS class to execute JavaScript without HTMLViewer in our own cross platform JavaScript engine.

See IEDocumentMBS.Evaluate for newer version which can return result.

IEWindowMBS.Scroll(x as integer, y as integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Causes the window to scroll to the specified x- and y-offset at the upper-left corner of the window.

x: long that specifies the horizontal scroll offset, in pixels.
y: long that specifies the vertical scroll offset, in pixels.

This method is provided for backward compatibility only. The recommended way to scroll a window is to use the scrollTo method.

IEWindowMBS.ScrollBy(x as integer, y as integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.
Example
dim w as IEWindowMBS = HTMLViewer1.IEWindowMBS

w.ScrollBy 0, 1000

x: long that specifies the horizontal scroll offset, in pixels. Positive values scroll the window right, and negative values scroll it left.
y: long that specifies the vertical scroll offset, in pixels. Positive values scroll the window down, and negative values scroll it up.

IEWindowMBS.ScrollTo(x as integer, y as integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Scrolls the window to the specified x- and y-offset.

x: long that specifies the horizontal scroll offset, in pixels.
y: long that specifies the vertical scroll offset, in pixels.

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


The biggest plugin in space...