a function sets all possible parameters for a window: loc, name,paramlist
function NewWindow( ){ MyExample=window.open("page1.html","bob",
"directories=yes,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes,scrollbars=yes,width=400,height=300"); }
 



<html>
<head>

<script type="text/javascript">
<!--
function NewWindow( ){
MyExample=window.open("page1.html","bob","directories=yes,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes,scrollbars=yes,width=400,height=300"); }

// -->
</script>
</head>
<body>
a function sets all possible parameters for a window: loc, name,paramlist<br/>
function NewWindow( ){
MyExample=window.open("page1.html","bob",<br>
"directories=yes,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes,scrollbars=yes,width=400,height=300"); }
<form>
<center>
<input type="button" VALUE="Open Page 1" OnClick="NewWindow( )">

<input type="button" VALUE="close the window" OnClick="MyExample.close( )">
</center>
</form>
</body>
</html>