Webportal v1

embedded apps

API Reference - HMI.WebBrowser.hide

HMI.WebBrowser.hide

Type Event
wave 2
wave 3
wave 4

Event triggered when focus is not on WebPortal.

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("hide", function(){
			alert("The Browser has been hidden");
		});
	}
} catch(e) {
	DealWithHMIWebBrowserError(e);
}

Appeared in Software version 30.11.04.10