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 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. 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. 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. 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. Link to comment https://forums.phpfreaks.com/topic/267249-force-on-page-load/#findComment-1370424 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.