Forum Moderators: open

Message Too Old, No Replies

Open new window for IE at maximum size

I know ScreenX,ScreenY, but .....

         

Shane

12:42 am on May 21, 2003 (gmt 0)

10+ Year Member




I need to open a new window which is full screen and top left of screen but with scroll bars and navigation tools. It has to be for Internet Explorer (version 6.)

Any help appreciated.

Thanks,
Shane

outrun

2:03 am on May 21, 2003 (gmt 0)

10+ Year Member



Found this on the web awhile back try it out

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]

Shane

4:37 pm on May 21, 2003 (gmt 0)

10+ Year Member




Thanks outrun!

..... Shane