Set IE To Full Screen

Josh Simpson's picture

They have: 147 posts

Joined: Dec 1999

Hi There
U know how on IE you can put it into full screen mode? (F11)
Does any one you know how to do that with a command or something, like change it to full screen automatically when you load up the web page

Thanks

JLS (Joshua Lee Simpson)

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I don't know if you can.. Vincent Puglia would be the one to ask.

The one solution I can think of is to open a new window with no toolbars. set the dimensions equal to screen.width and screen.height and close the parent.

It's sloppy and the client might not know what's going on or like it, but it should work.

Good luck,

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 383 posts

Joined: Sep 2000

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

Adam: unless I'm mistaken, that's an IE-thingy only. Max's solution, coupled with an onLoad event handler, provides a crossBrowser solution --
window.resizeTo(screen.width, screen.height) or
window.resizeTo(screen.availWidth, screen.availHeight)

Vinny

Where the world once stood
the blades of grass cut me still

They have: 383 posts

Joined: Sep 2000

Yes, of course it is. However he was looking for a command to switch IE to full screen like F11 does.

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Adam,

Guess I read Josh's first sentence as an example, rather than a direct request. Still, I believe crossBrowser solutions are better suited since many people tend to get caught up in many of M$'s "shortcuts" (lack of form tags, document.formname.selectname.selectedIndex, etc.) As a rule, I try not to use any IE-only code (except on intranets).

Vinny

Where the world once stood
the blades of grass cut me still

They have: 383 posts

Joined: Sep 2000

Vinny, point taken. The IE tag in this case is a lot cleaner mainly because there are no sizing issues. If you want true compatibility use a browser select script and use object.FullScreen with IE and the window.resize with Netscape. That’s what I’ve done in the past for an intranet site that had full screen sections.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

can you remove toolbars with the resizeto() function? (So it looks more like F11)

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

The resizeTo() only takes x,y (width,height) for parameters. If you want to remove the toolbar, you'd have to state that when you first open the window (window.open())

Vinny

Where the world once stood
the blades of grass cut me still

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

is there anyway to remove toolbars after the window has been opened?
such as "window.scrollbars = false"

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Max,

I've never heard of one. And if IE allows it, for sure netscape doesn't. If you are curious enough, check out microsoft's workshop -- msdn.microsoft.com/workshop

Vinny

Where the world once stood
the blades of grass cut me still

Josh Simpson's picture

They have: 147 posts

Joined: Dec 1999

Hey Thanks

I think I got what I neaded from all of that. Smiling

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Josh,

I forgot you started the thread. Glad you found your answers Smiling

Vinny

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.