faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 17 people (53%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

It is possible to set or open a window maximized? (not screen.availWidth, screen.availWidth)

Apr 6th, 2008 19:28
ha mo, Dave Clark, Colin Fraser, Dan Costea,


I have no way of testing this code, any Microsoft product is not my
first choice, but I understand that it can be done only in Internet
Explorer, try this : 
<script language="JavaScript"><!--// hide script
function openFullscreen(apage) {
    if (document.all) {
        window.open(apage,'windowName','fullscreen=yes');
    }
    return true;
    }
//--></script>
The link to the function is :  
<a href="thispage.htm" onClick="openFullscreen(this.href)">Open a page
in  fullscreen mode</a>
I dont have a copy of IE on my pooter to test this, but it should 
work. 
I think I got this from theFreeSite.com, but I cant remember
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     Firstly, the 'fullscreen=yes' feature is not a true 'maximize' 
state.  Secondly, for security reasons, IE no longer supports that 
window feature from an Internet-based web page.  So, the answer now 
is, "Internet-based JavaScript cannot 'maximize' the browser window in 
the same way as the Maximize control button.  It can only change the 
window width and height."
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com