Positioning New Opened Windows

Do you know where window.open() opens your new windows? Using this JavaScript, you can actually have the new window open wherever you want! Look at our example to see what we mean!




<SCRIPT>

// Example of the last Function (Window: 300 pixels from left & top)

function openThreehundred() {
     var three =
open("", "three", "height=250,width=250,left=300,top=300");

     three.document.write(
        '<HTML>'
     + '<HEAD><TITLE>Windows!</TITLE></HEAD>'
     + '<BODY bgColor="white">'
     + '<TABLE HEIGHT="100%" WIDTH="100%" BORDER="0">'
     + '<TR><TD ALIGN="center" VALIGN="center" WIDTH="100%">'
     + '<IMG SRC="images/tjsbutton.gif"  ALIGN="center" VALIGN="center"><P><B>'
     + '<A HREF="javascript:window.close()">'
     + 'This window is:<BR> 300 pixels from left<BR>300 pixels from top'
     + '</A>.</B>'
     + '</TD></TR>'
     + '</TABLE>'
     + '</BODY>'
     + '</HTML>'
     );
}

</SCRIPT>