Identifying browsers

Home > Etc > Example 01

Explanation

DEXTUploadX5 should run in browsers that natively support HTML5. Starting with version 1.1.0.0, it supports a property value that can determine the type of the current browser.

var browsers = dx5.browser;

// isIE, isChrome, isFirefox, isOpera, isEdge, isSafari(only macOS)
if (browsers.isIE) {
	alert("This browser is not supported.");
} else {
	dx5.create({ id: "dext5", parentId: "dext5-container" });
}

Example