Jump to content

Maximizing Screen Issue


iPixel

Recommended Posts

I use your basic code to maximize the screen to take up all the real estate possible.

function maximize() 
{
    window.moveTo(0,0)
    window.resizeTo(screen.availWidth, screen.availHeight)
}

 

This code works, as long as the page that has this script is not in a multiple open TAB browser.

When i open the page with this code separately the code works and maximizes the screen, but if there were any other TABs opened this same code will fail.

 

Does anyone know a workaround for this? This issue is in IE and Chrome, still need to test FF/Safari.

 

Thanks!

Link to comment
Share on other sites

Personally I'd just leave the window alone. Unless it's necessary for some type of application (quiz/exam style pop-ups spring to mind, which would be in a separate window anyway), there's really no need. Users will have their window sized how they want, and if you start playing around with it they much just close the tab altogether.

Link to comment
Share on other sites

I need to do this because the layout requires alot of space. Flash pages do this allllllllllllll the time, and i have never once closed any of those pages. Granted i like my windows sized as they are but i understood the necessity when it was done to me.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.