Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

How do you get "_blank" target windows to be fullsized?



3:20 pm on Feb 20, 2006 (gmt 0)

10+ Year Member

I have the link: <a href="http://www.mysite.com" target="_blank">test</a>, but when I click it in IE it opens in only a half sized window. How do I get it to open in a full sized window?

Receptional Andy

3:35 pm on Feb 20, 2006 (gmt 0)

IE opens a window of the last size the visitor's (non-full screen) browser window was set to - you can only control the size of newly opened windows using javascript.


8:18 pm on Feb 21, 2006 (gmt 0)

10+ Year Member

For javascript, is there a way to set the window the maximum size based on whatever resolution the user is running at? So no matter their resolution, they would get a full sized window?


8:50 pm on Feb 21, 2006 (gmt 0)

10+ Year Member

Last I knew, there was not a way to directly open up a maximized window, but I have used a function like the one below, which orders the window to open and then to immediately resize to the maximum available screen area.

function open_window_max(URL, WinName)
var wOpen;
var sOptions;

sOptions = 'status=yes,menubar=yes,scrollbars=yes,resizable=yes,toolbar=no';
sOptions = sOptions + ',width=' + (screen.availWidth - 50).toString();
sOptions = sOptions + ',height=' + (screen.availHeight - 50).toString();
sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0';

wOpen = window.open( '', WinName, sOptions );
wOpen.location = URL;
wOpen.moveTo( 0, 0 );
wOpen.resizeTo( screen.availWidth, screen.availHeight );
return wOpen;


Featured Threads

Hot Threads This Week

Hot Threads This Month