Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
How to make ASP.Net page(Browser Window) in Full Screen mode when load, Eg like when we press F11

Appreciate your feedback
Thanking You.
Posted
Updated 27-Oct-10 23:46pm
v2
Comments
Sunasara Imdadhusen 28-Oct-10 5:54am    
Good Question!
Rod Kemp 28-Oct-10 8:06am    
This is really bad form, for example I have a 24" monitor and there is nothing more annoying than opening a web site to find some programmer has decided that is must be opened full screen even though it only takes up maybe half the width of my monitor. Design your site for a minimum width but allow the user do decide on if the browser needs resizing.

Use this script


window.onload=function(){<br />
       if(window.location.href.indexOf('?FULL')==-1)<br />
       {<br />
         window.open(window.location.href+'?FULL', '', 'fullscreen=yes, scrollbars=auto');<br />
         window.close();<br />
       }<br />
    }
 
Share this answer
 
Comments
leonardstoch 25-Nov-11 4:39am    
Thanks for this. But, the screen doesn't allow me to press the f11 key to revert to the normal screen.

And is there anyway to stop the system from asking "The webpage you are viewing is trying to close the window. Do you want to close the window?

Is there a way round the above issues? please email an answer to liewe.hemel@gmail.com

Thanks
Try this, but i'm sure it's not fair for end users
HTML
<html>
<head>
<title>test</title>
<body>
<a href="javascript:;" onclick="window.open('index.htm','','fullscreen,scrollbars');">Open Window Fullscreen</a>
</body>
</html>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900