javascript - force maximum browser size on page load -
i'm wondering if @ possible use javascript detect if user's browser minimized (not minimized -- reduced size smaller maximize) @ all, , if > force full screen > upon page load of website.
$( document ).ready(function() { if (smaller max screen) { screen = 100%; // general idea });
yes possible detect change of size, here's how it,using jquery:
$(window).resize(function() { //... });
and here's how maximize browser window :
window.moveto(0, 0); window.resizeto(screen.availwidth, screen.availheight);
but really, not encourage it, it's better user controls browsing experience.
Comments
Post a Comment