Write a JavaScript program to open new window and give focus.
<html>
<head>
<title>Open new window and give focus</title>
<script>
function openWindow()
{
myWindow = window.open('hello.html', 'My Window', 'top=100, left=100, width=250, height=100,status')
myWindow.focus();
}
</script>
</head>
<body>
<form action="#">
<input type="button" value="Open Window" onclick="openWindow()"/>
</form>
</body>
</html>
