iPixel Posted August 24, 2010 Share Posted August 24, 2010 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! Quote Link to comment Share on other sites More sharing options...
Adam Posted August 25, 2010 Share Posted August 25, 2010 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. Quote Link to comment Share on other sites More sharing options...
iPixel Posted August 26, 2010 Author Share Posted August 26, 2010 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. Quote Link to comment Share on other sites More sharing options...
Adam Posted August 27, 2010 Share Posted August 27, 2010 If they layout requires a lot of space then the browser will add scrollbars? Your layout should be flexible enough to handle it, and if it's not then you've done it wrong. Quote Link to comment Share on other sites More sharing options...
Omirion Posted August 27, 2010 Share Posted August 27, 2010 There was a function with witch you can open an address in a new window. Then you can proceed from there. But as Adam stated this is REEAALY bad user experience. I advice against use of such tactics. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.