Prevention of alt + space when pressing key from keyboard

Hi Experts,

We wanted to prevent alt+space on the browser.
Please can you advise a script. We are unable to do using keycode.
Please help

Regards,
tia_kamakshiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

stergiumCommented:
Hello.
 How about restricting only alt (keycode 18) with a return false inside your script.
Would that suffice to your purpose?
0
tia_kamakshiAuthor Commented:
Hi,

You cannot restrict the keycode 18.
If you click space after that it works.

Please try and help us with script.

Regards,
0
RobOwner (Aidellio)Commented:
What are you trying to prevent the user from doing with this key combination?
There may be another way around this.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

skullnobrainsCommented:
simple answer : you can't, or at least you definitely can't in any decent browser. it would be a huge nuisance and securty breach if a page could be open fullscreen without bars and the alt and ctrl buttons captured. users would be unable to get rid of the page without a button-reboot

what are you trying to achieve ?
0
RobOwner (Aidellio)Commented:
That's essentially what I was getting to as well, that it can't be done but if we can understand what you're trying to stop, then we can offer alternatives.
0
tia_kamakshiAuthor Commented:
Thanks for your replies.

We have site running outside where people can apply jobs.

Same site can be opened in the company for users. When users comes for interview or wants to apply for a job in the company machines.

Then we do not wanted user should be able to close full screen browsers. We have KIOS machines where user can apply for there resumes or fill in interview etc. question

In KIOS machines site opens in full screen only. But if you open site outside world or from ur PC then it is not full screen.

So, we require user should not be able to press alt+space

Please advise with solution.

Regards,
0
RobOwner (Aidellio)Commented:
Certainly for a kioskYou would need to control this with group/local policy on the machine. As for the world based version there's nothing you can do
0
RobOwner (Aidellio)Commented:
You can resize the browser to fill the screen but it suggests if this is a problem then there is an issue with the way you're going about this. You can prompt the user before they close the browser. But it shouldn't impact on your process if the user closes the browser in the outside world. If it does then you need to look at your job application code
0
tia_kamakshiAuthor Commented:
We never wanted to close this application by user.
User even cannot see url in the browser.
Look and feel will be different for users.
Even they cannot see scroll bar. They have the button at the bottom to scroll up and down to the browser.

Anyway, Can I have solution to disable alt+ space on IE

Regards,
0
RobOwner (Aidellio)Commented:
Add I said you can set up this internally but you just can't do it for people outside your office
0
RobOwner (Aidellio)Commented:
More on it http://en.kioskea.net/faq/611-using-ie-kiosk-mode
The links are old but should be valid.
I would go the group policy route for machines in house
http://deployhappiness.com/group-policy-kiosk-mode-locking-down/
0
skullnobrainsCommented:
if you administer these remote machines, you can do the following on windows
- set the browser as the shell instead of explore.exe
- make sure the users are not admins so if they cannot launch tasks through the task manager
- you can even make sure they don't have the right to reboot or shutdown the machine but they'll be able to close their sessions nevertheless
and on unix or unix-like OSs
- launch the browser fullscreen in X without a desktop or even a window manager

----

if these machines are other people's machines, just forget about the idea. it is not feasible hopefully for obvious security reasons (see my previous post)

---

you can give the users a live cd that they can boot from with a setup like the above but it won't prevent them from using it in a VM, and they might have to setup their internet connection which is a pain.

----

if you can have them launch an executable that will remap the alt key in windows and start their browser. a single .reg file can do the trick : have a look here for details : http://vlaurie.com/computers2/Articles/remap-keyboard.htm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tia_kamakshiAuthor Commented:
Can I please get the JavaScript solution for the same?

Regards,
0
RobOwner (Aidellio)Commented:
There is no JavaScript solution. Can't be done. You have to use a combination of computer policies and kiosk mode for IE and that's just got the computers at your office. As for everyone else, sorry just not going to happen.
The real problem here is your job application process. If it hinges on the user closing the browser then something is very wrong and you should go back to the drawing board and rethink it's design.
0
skullnobrainsCommented:
like everybody said. you can't, because of obvious security reasons. if this was feasible, it would be a HUGE nuisance for end-users

http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28225740.html#a39448890

just remember that many keys or key combinations are captured by the OS before they hit the browser, so js does not even have a chance to act on those key strokes in any way. ctrl+alt+suppr on windows is an example
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.