Write a JavaScript program to display all properties of "window" object.
<html>
<html>
<head>
<title>Display all properties of window object</title>
</head>
<body>
<script>
for(prop in window)
{
document.write(prop +", ");
}
</script>
</body>
</html>
