Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Lock a Browser/program window

Jul 13, 2007 4:19AM PDT

Is there a tweak (prefferably) or free/safe utility that can be used to lock a browser window, program window would also be helpful, at full screen as to not allow users to do/access anything but whatever is inside that window?

I have a an XP Pro machine and in the future Vista.

I have searched but not found anything under the terms I have used.

Discussion is locked

- Collapse -
For MSIE here you go ...
Jul 13, 2007 4:49AM PDT
How to use Kiosk Mode in Microsoft Internet Explorer
http://support.microsoft.com/kb/154780

As long as the page has no outside hyperlinks and you have no other apps running to Alt+tab to AND assuming the user is unaware of Keyboard Shortcuts for Kiosk Mode you should be good to go.

The following script on your webpage would help with preventing Keyboard Shortcuts:

document.onkeydown=DisableCtrlKey;
function DisableCtrlKey(e) {
var keycode;
if (window.event) {
keycode=window.event.keyCode;
}
else if (e) {
keycode=e.which;
}
if(keycode == 17) {
void(0);
}
}
- Collapse -
Wrong code -- use this ...
Jul 13, 2007 5:01AM PDT

<script text="textjavascript">
function detect() {
var pressKey = String.fromCharCode(event.keyCode);
if (event.ctrlKey) { alert('Keyboard Shortcuts are turned off');
}
};
</script>
<body onkeydown ="detect()">

- Collapse -
Almost.
Jul 13, 2007 4:57AM PDT

But remember that this is a Personal Computer and not a "terminal."

Do your research about the KIOSK MODE of Internet Explorer. With prior versions of Windows I would replace the shell= line with this kiosk mode and when they closed the window it logged them out.

Bob

- Collapse -
More Details
Jul 13, 2007 5:22AM PDT

1- This, one machine will be designated as a 'only for this purpose' machine.

2- Web page is not mine to edit.

3- Would like to inquire about the possibility of an independent script that would lock the browser, preferably but not necessarily Firefox, in full screen wile not allowing access to nothing else.

- Collapse -
"Web page is not mine to edit." = HOW TO!
Jul 13, 2007 5:26AM PDT

Since it's just one web page, here's how.

1. MANUALLY ASSIGN the machine's IP and other details.

2. DO NOT enter in the DNS entries!!! Very important.

3. Use the HOSTS FILE (see google.com) and enter in the one web site you need to resolve.)

4. Use the KIOSK mode and you are pretty much done. They can't go to any other web site.

Bob

- Collapse -
Kiosk Setup
Jul 13, 2007 5:46AM PDT

1-What is the relationship to assigning it a manual IP?
I have used the host file for redirecting sites with ought assigning a static IP.

2- I've never even seen a kiosk mode for the browser, where can I find it and how is it set?

- Collapse -
1. Why we do manual...
Jul 13, 2007 6:13AM PDT

Because if you used DHCP then the machine would get the DNS entries and you noted you didn't want them to go anywhere else.

2. Kiosk mode.

Read above and use your favorite search engine to research.

Bob