Webportal v1

embedded apps

API Reference - HMI.WebBrowser.show

HMI.WebBrowser.show

Type Event
wave 2
wave 3
wave 4

Event triggered when focus is on the WebPortal browser.

Example

1
2
3
4
5
6
7
8
9
10
try {
	// HMI.WebBrowser
	if ((typeof HMI !== "undefined") && (typeof HMI.WebBrowser !== "undefined") && (typeof HMI.WebBrowser.addEventListener !== "undefined")) {
		HMI.WebBrowser.addEventListener("show", function(){
			alert("The browser is back in focus");
		});
	}
} catch(e) {
	DealWithHMIWebBrowserError(e);
}

Appeared in Software version 30.11.04.10