Background
Today I was converting an old Windows based application to a web application and I thought of giving users the same feel as if they are using a Windows application. Thus I came to the requirement of opening a web application in full screen mode. I found a very elegant solution that I am sharing here.
Using the Code
Create a start page in your web application and set it as the startup page. In the start page, add the following Javascript. This script basically opens the web page in full screen mode and closes and starts the original start page.
<script language="javascript" type="text/javascript">
window.open("Login.aspx", "secondWindow",
"fullscreen,scrollbars='yes',statusbar='yes',location='no'").focus();
window.opener = 'secondWindow';
window.self.close();
</script>
Points of Interest
- This works perfectly in IE.
- In Firefox it does not get rid of the address bar.
- In Google Chrome this does not work as it shows a popup blocker message.
I am currently working as a Software Developer in .NET technologies.
Languages & Technologies I have worked on so far:
Pascal ... My first programming language..baby steps..
8085 Assembler ... Amazing how it all works internally in computer brain... "intel inside"
C... missing my point(er)....
C++... Its all about classes ...
LISP ... Did I missed any parenthesis ?
VB... Oh dear... Just like a war stories.. those are the days
Java... I learn to program this in notepad...
C#... Oh what a smooth sailing...
ASP.NET... web is the future ...
Oracle ... Not the one from "The Matrix"...
MSSQL... select Programming from Universe where StartTime >='BigBang'
Wireless Sensor Networks ... Look who is talking too ?