[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

Open a full screen html page but not from a second asp page.

Using IE6.0

Can anyone tell me how to open a full screen window of a page.  I open a full screen page using this code:


But it only works when you are calling the page from another page.  I have a Main Menu page that needs to be full screen from the beginning.

I tried:

Sub Window_OnLoad()
window.open "Menu_main.asp","Welcome","fullscreen=1"
end sub


Sub Window_OnLoad()
end sub

They don't work.

Thanks for you help
The Firebird
  • 2
1 Solution
This could work...automatically popping up a new window fullscreen when the page is viewed.

<body onLoad="window.open('Menu_main.asp','fs','fullscreen=yes')">

You cannot control the users setting. The only windows you can control the setting on are the ones you open in Javascript.  Quite frankly I can't imagine anyone who would use a browser that let you do that to them.

If it is for a website you are out of luck.  If it is for an intranet app in an IE environment.  You can use activeX or perhaps you can do it with an hta.

BirdsOfFire1Author Commented:
To: D4Ly

I tried this and got an error.
<body onLoad="window.open('Menu_main.asp','fs','fullscreen=yes')">

The error I got was:

Cannot use parentheses when calling a Sub

I probably will have to do it with HTA.

If you can think of anything else, let me know.  I will be back with you all on this subject.

The Firebird
BirdsOfFire1 -

My suggestion works in IE6.x for the following scenario:
-your site is www.example.com
-You type that site into the address bar.
-The homepage loads (preferably a splash page of some sort (which most FS sites have as a homepage to work around the very problem you're having IF this is for the internet))
-In the source for this homepage your open body tag looks like:
<body onLoad="window.open('Menu_main.asp','fs','fullscreen=yes')">
causing a new, fullscreen window to pop up.
-The original browser window will still be intact, holding your splash page (which you should probably put a link fo the popup as well for FF people like me :o)

Perhaps your question was unclear (in regards to your intentions...internet vs. intranet).

In any event GL!

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now