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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.