|
Author |
Message |
Kinja Kahn
Joined: 06 Mar 2003
Posts: 168
Location: Detroit
|
Posted: Sat Mar 08, 2003 2:02 pm Post subject: Target new window maximized... |
|
|
I am a novice web designer. I was wondering how to make my link open a maximized window. I can do the new window part but making it maximized is giving me problems!
Here's what i have already... it opens the new window but it isnt maximized...
<a href="http://kinjakahn.sytes.net/640/" target="new" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('nav_r9_c2','','images/nav_r9_c2_f2.gif',1);" ><img name="nav_r9_c2" src="images/nav_r9_c2.gif" width="118" height="38" border="0"></a>
Thanks in advance! _________________ *novice Photochopper*
Kinja Kahn |
|
|
|
|
Alzeric
Joined: 10 Apr 2003
Posts: 36
|
Posted: Thu Apr 10, 2003 7:17 am Post subject: Here try this.... |
|
|
To Open a window Maximized:
Do not be afraid to open window larger than screen, its size will be limited with sceen resolution. The only problem is that old browsers wouldn't place new window at top left corner. But MIE4 and NN4 will do this.
Code: | <script>
window.open("","windowName","width=2000,height=2000,screenX=0,screenY=0");
</script> |
|
|
|
|
|
nsr81
Joined: 20 Feb 2003
Posts: 70
|
Posted: Thu Apr 10, 2003 8:26 am Post subject: |
|
|
I'd use this code. Seems to work good with IE 4.x, 5.x and 6.x and Mozilla.
Code: |
<script language="JavaScript" type="text/JavaScript">
var URL = 'http://URL.com';
var winName = 'Window';
var height = screen.Height;
var width = screen.Width;
var features = 'width='+width+',height='+height+',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0';
window.open(theURL,winName,features);
</script> |
|
|
|
|
|
Kinja Kahn
Joined: 06 Mar 2003
Posts: 168
Location: Detroit
|
Posted: Thu May 15, 2003 4:42 pm Post subject: |
|
|
Thanks guys _________________ *novice Photochopper*
Kinja Kahn |
|
|
|
|
beetle
Joined: 04 Mar 2003
Posts: 105
|
Posted: Fri May 16, 2003 8:37 am Post subject: |
|
|
Opening a window fullscreen is generally a Bad Idea™
I wouldn't do it. Let the user have control of the window - it belongs to them, not the webpage. _________________ I got nuthin. |
|
|
|
|
|