Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body onload="versionofbrowser()">
<div id="test"></div>
<script>
function versionofbrowser() {
if((navigator.userAgent.indexOf("MSIE") > -1 ))
{
document.getElementById("test").innerHTML = 'IE10 or older';
}
else if(navigator.appVersion.indexOf('Trident/') > -1)
{
document.getElementById("test").innerHTML= 'IE11';
}
else if(navigator.appVersion.indexOf('Edge/') > -1)
{
document.getElementById("test").innerHTML= 'IE12+';
}
else
{
document.getElementById("test").innerHTML = 'something else';
}
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.9K 508