<!-- ON THE BUTTON POP-UP --> <!-- This goes in the BODY of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2001, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- var X = 200; // change the # at the left for a fixed X co-ordinate to accommodate non-compatible browsers var Y = 200; // change the # at the left for a fixed Y co-ordinate to accommodate non-compatible browsers (document.getElementById && !document.all) ? dom = true : dom = false; if (document.layers || dom) { document.captureEvents(Event.MOUSECLICK) function getcoords(e) { X = parseInt(e.screenX) - 80; // change the # at the left to further adjust the left-margin depending on the size of the window Y = parseInt(e.screenY) - 60; // change the # at the left to further adjust the top-margin depending on the size of the window return true;} document.onmouseclick = getcoords; function open_win() { if (document.all) { X = parseInt(event.screenX) - 80; // change the # at the left to further adjust the left-margin depending on the size of the window Y = parseInt(event.screenY) - 60; } // change the # at the left to further adjust the top-margin depending on the size of the window SW=window.open("","NewWin","menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=130,width=190,resizable=yes"); SW.moveTo(X,Y); } } // --> </script> <br /><br /><br /><br /><br /><br /> <table width="100%" border="0"> <tr> <td width="20%">&nbsp;</td> <td width="80%"> <form><input type="button" value="Click Me" onClick="open_win()" /></form> </td> </tr> </table>