Forum Moderators: open
Put this within your head tags:-
* shows where a line break was added to prevent
side scrolling - delete the line break when using the script
<SCRIPT LANGUAGE="JavaScript">
function openWindow(URL) {
var availHeight = screen.availHeight;
var availWidth = screen.availWidth;
var x = 0, y = 0;
if (document.all) {
x = window.screenTop;
y = window.screenLeft;
}
else if (document.layers) {
x = window.screenX;
y = window.screenY;
}
var arguments = 'resizable=1,toolbar=1,location=1,directories=1,
*addressbar=1,scrollbars=1,status=1,menubar=1,top=0,left=0,
*screenX='+x+',screenY='+y+',width='+availWidth+',height='+availHeight;
newWindow = window.open(URL,'',arguments);
}
</SCRIPT>
Put this in your body tag
<A HREF="yoururl.htm" onClick="openWindow('yoururl.htm'); return false;" TARGET="_blank">OPEN IN MAXIMIZED WINDOW</A>
regards,
Mark
[edited by: tedster at 2:11 am (utc) on May 21, 2003]