<!DOCTYPE html>
<html>
<body>
<p>Click the button to display the name of your browser.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = "Browser Name: " + navigator.appName;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>