> Maybe just a way to have a
> button that triggers the F11?

you could change the event.keyCode of another keypress

if (e.keyCode==13) { e.keyCode=122; return e.keyCode; }

On Sep 26, 8:36 pm, jhm <jmay...@gmail.com> wrote:
> >> i think it's generally better to let users configure their own browsers ;)
>
> I agree. This would be in response to something the user clicks
> indicating they want a full-screen view temporarily. Getting rid of
> all the browser toolbars, menus, etc. Maybe just a way to have a
> button that triggers the F11?  I'd like to remain in the same window,
> but maybe the window.open is perhaps a backup solution if I can't find
> a better one.
>
> Thanks for the help, I appreciate it!
>
> On Sep 26, 12:14 pm, "ryan.j" <ryan.joyce...@googlemail.com> wrote:
>
> > you used to be able to use an activex control to simulate an F11
> > keypress in IE, but i honestly don't know if it still works. it's
> > likely to trigger a yellowbar prompt in IE these days anyway. you can
> > open a new window without any toolbar, statusbar etc with plain old
> > window.open (http://www.w3schools.com/HTMLDOM/met_win_open.asp),
>
> > if you just want to force-maximise the window regularly you could try
> > something like...
>
> > self.moveTo(0,0);
> > self.resizeTo(screen.availWidth,screen.availHeight);
>
> > but personally i hate sites that do that. Or you could jsut have the
> > text "best viewed fullscreen. press F11 for fullscreen" or whatever if
> > the window res is below a certain value.
>
> > i think it's generally better to let users configure their own
> > browsers ;)
>
> > On Sep 26, 7:35 pm, jhm <jmay...@gmail.com> wrote:
>
> > > Is there some way to switch the browser into full screen mode?
> > > Essentially emulating the F11 key in IE would be what I'm trying to
> > > accomplish.
>
> > > TIA!

Reply via email to