Open another Window with Javascript

1) Insert this Javascript into the head of your HTML file:

<script language="JavaScript">
<!--

function openWin (fname,h,w,x,y)
{
var win = window.open(fname,"",'scrollbars,resizable,height='+h+',width='+w+',left='+x+',top='+y+',screenX='+x+',screenY='+y+'');

win.focus()

}

//-->
</script>

2) Create a link which calls the Javascript function with its parameters to open the new window.

For example:

<a href="javascript:openWin('index.html',500,600,0,0)">

The first parameter is the file you want to open in the window.
The second, height of the window.
The third, width of the window.
The fourth, x coordinate for the top, left of the window.
The fifth, y coordinate for the top, left of the window.

(0,0) are the coordinates for the top, left of the screen.

Open it now!