Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8484963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:30:54+00:00 2026-06-10T20:30:54+00:00

Essentially, in our system, our users enter reports and they find all manners of

  • 0

Essentially, in our system, our users enter reports and they find all manners of ways to accidentally lose their work on them so we have been locking down everything that they can press that might make them lose data. F5, CRTL + R, CTRL + W and Backspace are all disabled; all bars in IE are hidden and there is a confirmation dialog on the close button.

I have not had any luck in disabling ALT + F4, ALT + ←, ALT + →

I have tried disabling them with javascript. However my method is not working.

if (window.event.altKey) {
    if (window.event.keyCode == 115) {
        window.event.cancelBubble = true;
        window.event.returnValue = false;
        window.event.keyCode = 0;
        window.status = "Alt + F4 is disabled on all popups";
        return false;
    }
}

I’m thinking I may require more drastic methods.

In this answer here, he suggests this may be possible with shdocvw.dll but I’m not sure what that would entail.

Is there a means to disable the Alt + X combination or perhaps work around I can exploit for them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:30:56+00:00Added an answer on June 10, 2026 at 8:30 pm

    You shouldn’t mess with default browser behavior. If you’re worried about users accidently closing the window, just use the onbeforeunload event:

    window.onbeforeunload = function () {
        return 'You will lose all unsaved changes.';
    };​
    

    http://jsfiddle.net/jbabey/rPLWd/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm converting all of our Crystal Reports to use a home-built reporting system. Essentially,
Where I work they use the AppletContext.showDocument(URL) method when a user logs off our
I've got an ASP.NET web application, that is essentially our intranet site. I made
Essentially, I have a binary voting system Like/Dislike. Thee class is called Like It
I have a system which is a CRM of sorts, it essentially manages customers
We have just released a re-written(for the 3rd time) module for our proprietary system.
A few weeks ago I wrote an SNMP relayer for our ops group. They
Ok I have now virtually fixed our menu system. The only Issue I have
I'm investigating replacing or supplementing our home grown ORM system with the Entity Framework
I currently work on a trading application that does not use camel. It essentially

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.