/    Sign up×
Community /Pin to ProfileBookmark

Kiosk Mode in FireFox

Is it possible open a window from a command line in FireFox without menu bar, toolbar, etc.?

I used to use the following as part of the script that does this:

window.open(“‘$URL'”,”help”,”status=no,hotkeys=no,toolbar=no,scrollbars=yes,resizable=ye
s,height=700,width=750″)

However, this used to be in a temp window, which then opened the real window and closed itself. The problem is that, due to security features, “scripts cannot close windows that were not opened with script.”

How can I open a window in FireFox with all these options without opening a temp window that will not automatically close?

Thanks!!
Troy

to post a comment
JavaScript

9 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51May 06.2005 — I do not think you can force Firefox into it....
Copy linkTweet thisAlerts:
@Troy_WellsauthorMay 06.2005 — These options I mentioned do work on FireFox. The problem is you cannot automatically close the temp window that contains the script to open this window with these options.

Any ideas on closing the window, or removing these things (menu bar, etc) after opening the window?

Thanks!!

Troy
Copy linkTweet thisAlerts:
@A1ien51May 06.2005 — Ah, misread the question....

No you can not close the first window since it is a security issue. I think IE can not do it after SP2. PLUS pop up blockers may also block your window from opening up depending on how you have it set up.

There is no way to remove toolbars from the browser without opening this second window.

As I always say: Leave my window alone! Why are you afraid of the button on the browser? I personally will not go back to sites that mess with my browser and put it into different modes.

Eric
Copy linkTweet thisAlerts:
@Troy_WellsauthorMay 06.2005 — That much I knew.

Is there an option I can set to run on open that will close things like the menu bar, button bar, etc?

Troy
Copy linkTweet thisAlerts:
@A1ien51May 06.2005 — There is no way to manipulate the current window.
Copy linkTweet thisAlerts:
@Troy_WellsauthorMay 06.2005 — Still trying to figure a way to achieve my objectives. Consider the following:

  • 1. I know you can use the command line to create a profile. Can you use a command line to manipulate a profile to include information on what to display and what not to display (such as menu bars, toolbars, etc.)?


  • 2. Is it possible to resize the temp window from which this was launched so that it is virtually invisible (1 px by 1px or whatever)?


  • 3. On a different note, I notice that if a help topic is up on FireFox and I click a Help button on another window, the existing browser does not come to the front. Is there a command line option to do that?


  • Thanks again!!

    Troy
    Copy linkTweet thisAlerts:
    @A1ien51May 06.2005 — [B] 1. I know you can use the command line to create a profile. Can you use a command line to manipulate a profile to include information on what to display and what not to display (such as menu bars, toolbars, etc.)?[/B]

    [COLOR=DarkSlateBlue]JavaScript can not use the command line. You are talking security issues here! Can we say FORMAT[/COLOR]

    [B]2. Is it possible to resize the temp window from which this was launched so that it is virtually invisible (1 px by 1px or whatever)?[/B]

    [COLOR=DarkSlateBlue]smallest a window can be made is 100X100[/COLOR]

    [B]3. On a different note, I notice that if a help topic is up on FireFox and I click a Help button on another window, the existing browser does not come to the front. Is there a command line option to do that?[/B]

    [COLOR=DarkSlateBlue]You can set focus to a window. popUpName.focus()[/COLOR]

    zipping my mouth.....

    Eric
    Copy linkTweet thisAlerts:
    @Troy_WellsauthorMay 06.2005 — 
  • 1. I did not know you could set a profile to FORMAT anything? I was thinking of checking if a profile by some weird name exists, creating if it doesn't, and setting this profile to not display certain items. Then I could use a command line to open FireFox using this profile I created. I'm sure I'm missing something somewhere, but I don't see the harm in that.


  • Perhaps there are no command line options because you don't want a user to change an existing profile, but it would nice if you set options when creating a new profile.

  • 2. OK.


  • 3. Where do I put this code? Somewhere in the topic itself in the "onload" statement? Or do I put it somewhere in the arguments on the command line when loading the topic?
  • Copy linkTweet thisAlerts:
    @jalarieMay 06.2005 — Troy Wells, if you're trying to do kiosk-mode on your website for people visiting your page from around the world, then the answers given above are correct: you CAN'T do what you want. On the other hand, if you're doing this for your company and wish to set up Firefox at real, live kiosks around the building, then you have a chance of getting to the command prompt and loading Firefox the way you want it right at the beginning. The command line can take the following parameters:

    -height <value> Set height of startup window to <value>.

    -h or -help Print this message.

    -width <value> Set width of startup window to <value>.

    -v or -version Print Firefox version.

    -P <profile> Start with <profile>.

    -ProfileManager Start with profile manager.

    -UILocale <locale> Start with <locale> resources as UI Locale.

    -contentLocale <locale> Start with <locale> resources as content Locale.

    -console Start Mozilla with a debugging console.

    -jsconsole Start with Javascript Console

    -inspector <url> Start with the DOM Inspector.

    -edit <url> Start with editor.

    -chrome <url> Load the specified chrome.
    ×

    Success!

    Help @Troy_Wells spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...