Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
WEB: Web Design Forum- TutorialsDreamweaver Forum- TutorialsFlash Forum- TutorialsWeb StreamingTraining

new window to open as maximized page

Cow Forums : Adobe Dreamweaver
new window to open as maximized page
by Mouzhan Mangum on Mar 20, 2008 at 5:51:49 pm

When opening a _blank page I want it to open maximized. Is there any way to do this in Dreamweaver?

Here is my page:

http://www.infotrac.com/Website/Temporary/Info1298/InfoSite/contact_order_tracking.htm

Respond to this post   •   Return to posts index

Re: new window to open as maximized page
by Abraham Chaffin on Mar 20, 2008 at 6:06:17 pm

To make your window maximize when it loads you would have to use a custom javascript on page load that maximizes the window. There's no simple command like target="_blank" / target="_maximized" to do this. The user must have javascript enabled for it to work.

Here's the sort of Javascript you might be wanting to run:

<script language="JavaScript">
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);
</script>

You can put it into the body onLoad tag - it would look something like this:

<body onLoad="window.moveTo(0,0);window.resizeTo(screen.width,screen.height);">


Abraham

Respond to this post   •   Return to posts index

Re: new window to open as maximized page
by Mouzhan Mangum on Mar 22, 2008 at 2:22:35 pm

Thanks for the reply. Am I putting the code in the wrong place?

http://www.infotrac.com/Website/Temporary/Info1298/InfoSite/contact_order_t...

Mouzhan



Respond to this post   •   Return to posts index


Re: new window to open as maximized page
by Abraham Chaffin on Mar 24, 2008 at 2:27:31 pm

Right now you have:

onLoad="MM_preloadImages('Images/track_down.jpg', 'Images/view_cart_down.jpg'), "window.moveTo(0,0); window.resizeTo(screen.width,screen.height);"

There's a couple things wrong there that I put in red. The comma should be a semi colon, and you don't need the starting quote there because it's part of the whole onLoad string.

Should be:

onLoad="MM_preloadImages('Images/track_down.jpg', 'Images/view_cart_down.jpg'); window.moveTo(0,0); window.resizeTo(screen.width,screen.height);"

Abraham

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]