help120,
Include the following scipt in the <HEAD></HEAD> section of your HTML page:
<script language="JavaScript">
//<!--
var launchMap = null;
var w = 0;
var h = 0;
function deadCentre(url,w,h) {
if (window.screen) {
var chasm = screen.availWidth;
var mount = screen.availHeight;
launchMap = window.open(url,'posB','width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
}
}
// -->
</script>
Then whereever you want the link, type the following:
<a href="javascript:deadCentre('myPage.htm',620,440)">Click Here to open window</a>
myPage.htm is the page you want to open in the window.
620 is the width of the window
440 is the height of the window.
Just change these to suit your case.
Hope this helps.
Mise Le Meas,
Mighty
