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
https://forums.phpfreaks.com/topic/211615-maximizing-screen-issue/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.