IE Check

by Joe Saad

HTML

<button id="place">Hello</button>

JavaScript

if (window.navigator.userAgent.indexOf("Trident") > 0) {
	alert('browser is IE')
}
else {
	alert('other browser')
  
}

alert(window.navigator.userAgent)

alert(navigator.userAgent)