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

msg:1472084 | 3:20 pm on Feb 20, 2006 (gmt 0) | 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

msg:1472085 | 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.
|
smithaa02

msg:1472086 | 8:18 pm on Feb 21, 2006 (gmt 0) | 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?
|
bruhaha

msg:1472087 | 8:50 pm on Feb 21, 2006 (gmt 0) | 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.focus(); wOpen.moveTo( 0, 0 ); wOpen.resizeTo( screen.availWidth, screen.availHeight ); return wOpen; }
|
|
|