hackalive Posted August 18, 2012 Share Posted August 18, 2012 Hi guys, Im using this plugin (or FF API - happy to change). http://www.ailis.de/~k/archives/66-jQuery-Fullscreen-Plugin.html However I want to make it happen when the document or window loads. I tried $(document).load(function(){ $(document).fullScreen(true); } Which did not work Any suggestion or help is greatly appreciated. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/267249-force-on-page-load/ Share on other sites More sharing options...
Christian F. Posted August 18, 2012 Share Posted August 18, 2012 Try .ready () instead of .load (), might help. If not, then have a look at Firebug to see if you can't find any error messages, or some other hints to as why the code doesn't work. Quote Link to comment https://forums.phpfreaks.com/topic/267249-force-on-page-load/#findComment-1370397 Share on other sites More sharing options...
Adam Posted August 18, 2012 Share Posted August 18, 2012 I imagine something as intrusive as full-screen mode would require a user action before the browser will permit it. Try applying your code to a click event and see if that works. Quote Link to comment https://forums.phpfreaks.com/topic/267249-force-on-page-load/#findComment-1370405 Share on other sites More sharing options...
hackalive Posted August 18, 2012 Author Share Posted August 18, 2012 Applying it to a click works - but id like it to be automatic when the page loads. Quote Link to comment https://forums.phpfreaks.com/topic/267249-force-on-page-load/#findComment-1370423 Share on other sites More sharing options...
Adam Posted August 18, 2012 Share Posted August 18, 2012 As I said, the browser won't let you enter full-screen mode without the user triggering it themselves (which is a really good thing). You'll need to have a button or something to trigger it. Quote Link to comment https://forums.phpfreaks.com/topic/267249-force-on-page-load/#findComment-1370424 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.