Write a JavaScript program to display browser details using "navigator" object.
<html>
<head>
<title>Display browser details</title>
</head>
<body>
<script>
var browserName = navigator.appName;
var width = window.screen.availWidth;
var height = window.screen.availHeight;
var lastModified = document.lastModified;
document.write("Your browser is " + browserName);
document.write("<br>Your screen height is " + height);
document.write("<br>Your screen width is " + width);
document.write("<br>This webpage was last modified on " + lastModified);
</script>
</body>
</html>
