Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am looking for a way to launch Chrome, Firefox, or IE9+ (any one will do) from a script or command line without any window frame, address bar, or tabs section.

Illustration:

OrangeBox

For instance, I'd like to only be able to see the section that is comprized of the orange box, and the area inside of it.

The horizontal scroll bar won't be an issue (I control the html that will be displayed and I can ensure it won't need to scroll). Ideally I'd like to cut out the vertical scrollbar, but I could live with it if it were shown.

Does anyone know of any tool or script that would allow me to do this on Windows 7?

share|improve this question

4 Answers 4

up vote 13 down vote accepted

Internet Explorer

For Internet Explorer you can use -k (kiosk mode):

Starts Internet Explorer in kiosk mode. The browser opens in a maximized window that does not display the address bar, the navigation buttons, or the status bar.

Example:

iexplore.exe -k http://www.google.com/

Read more about this:


Firefox

Firefox command line option -fullscreen didn't work for me:

"firefox.exe" -url http://superuser.com -fullscreen

But the use of R-kiosk 0.9.0 extension by Kimmo Heinaaro works like a charm.

Real Kiosk is a Firefox extension that defaults to full screen, disables all menus, toolbars, key commands and right button menus. Alt+Home still takes you home.

share|improve this answer
1  
That is nifty and might work for me, is there anyway that I can specify a Height/Width and x/y position for IE to occupy while in this kiosk mode? Ideally I don't want it to occupy the full screen. –  FoamyGuy Aug 9 '12 at 23:52
    
@Tim Updated my answer with the requested solution. –  Zuul Aug 10 '12 at 0:13

For chrome/chromium it is the --app=http://address.com flag.

You would use it by calling chromium-browser --app=http://some.website.org or google-chrome --app=http://www.google.com or chrome.exe --app=http://you.get.it etc.

All available switches: http://peter.sh/experiments/chromium-command-line-switches/

EDIT: You might also want to take a look at the --kiosk flag.

share|improve this answer
2  
MOG so many options :D +1 –  Zuul Aug 10 '12 at 0:18
    
This hides the address bar and tabs but leaves the window frame (with min/max, and exit buttons) +1 anyhow though got me a lot closer than I got myself. –  FoamyGuy Aug 10 '12 at 0:44
    
@Tim You could try using the --kiosk flag on some versions of chrome/chromium. –  Alex Aug 10 '12 at 0:49

for firefox use

firefox.exe -chrome http://example.com

Works like a charm but it is not a documented command line option.

Note: the size of the window is calculated based on the size of the body, make sure you specify the necessary window size in html.

share|improve this answer

To Expand on @Zuul answer with another way to specify Width/Height and x/y position for the window

This autohotkey script will do the trick too:

Run, C:\Program Files\Internet Explorer\iexplore.exe -k http://www.google.com/
WinWait, Windows Internet Explorer
WinMove,,,100,100,400,300

this example will position the window at x=100, y=100, with width=400 and height=300.

EDIT:Also

<body scroll="no">

in my html will disable(hide) the verticle scrollbar for IE. that + Zuul answer + this AHK script gets me to exactly where I was hoping.

EDIT2: Turns out I didn't even need the scroll-"no" in my html the vert scrollbar was never shown anyway. I imagine this is going to be dependent on what page you are showing though.

share|improve this answer
    
Are you sure this works? Nothing happens when I reload my AHK script. The path is correct. –  geotheory Oct 14 at 11:15
    
it definitely worked for me back when I needed it. Haven't touched it over a year though. Can't vouch for it with current IE versions. that being said, I can't think of a reason off the top of my head that would prevent it from working. –  FoamyGuy Oct 14 at 14:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.