HTML Browser Commands

Top  Previous  Next

See html_browser.mbd and some other examples available in Samples folder.

Browser("ObjectLabel","Commands/URL Path")

Description

 

Controls the HTML Browser Object

Possible commands:

Back - return back to previous page

Forward - jump forward

Stop - stop loading HTML page

Refresh - refresh current HTML page

OpenFile - Show OpenFile dialog with htm/html files as a default extension

Print - print HTML page

Anything else (including string variables) will be opened as file (HTM/HTML, MHT, PDF...) or url.

 

WARNING! HTML object can load the PDF files, but only if the appropriate PDF reader (AcrobatReader) is already installed on the user's computer.

 

For a real example of a Browser object check the example here... html_browser.mbd

 

NOTE: If you want to obtain the actual URL path from the Browser object, use the CBK_URLPath constant.

Code Example

 

** This will load the mediachance web

Link$='www.mediachance.com'

Browser("Browser","Link$")

 

** This will print contents of the Browser object

Browser("Browser","Print")