Reputation: 379
I want to make my page viewed at full screen.
How can I programatically press F11 on page load. Is it possible?
Thank you
Upvotes: 0
Views: 879
Reputation: 18334
It is not possible to open a window full screen on load. It is not possible to resize the page you are loading.
What you can do is to open a max size child window, say on click of a button etc (if you do it onload, popup blockers would block it).
If it is a corporate intranet then perhaps you can add a rule to all your browsers to add your site to the popup blicker whitelist.
You can also use flash (etc) to open a document full screen, but this is not probably what you are looking at.
Upvotes: 0
Reputation: 490243
No - not possible without JavaScript. And only then, you can open a large new window, but not emulate pressing F11.
Also, changing browser window sizes without the user's consent is very frustrating for them.
Upvotes: 2