Is there any way to dismiss JavaScript alert() programatically OR by pressing any key and not necessarily pressing the ENTER key?
83075
I want to be able to close an alert box automatically using Javascript after a certain amount of time or on a specific event (i.e. onkeypress).  From my research, it doesn't look like that's possible with the built-in alert() function.  Is there a way to override it and have control over the dialog box that it opens?  Also, I don't want an override that shows a hidden div as the alert.  I need an actual dialog box.
61061
There was a post this morning asking about how many people disable JavaScript. Then I began to wonder what techniques might be used to determine if the user has it disabled.   Does anyone know of some short/simple ways to detect if JavaScript is disabled? My intention is to give a warning that the site is not able to function properly without the browser having JS enabled.   Eventually I would want to redirect them to content that is able to work in the absence of JS, but I need this detection as a placeholder to start.
113983
Is it possible to prevent the browser from following redirects when sending XMLHttpRequest-s (i.e. to get the redirect status code back and handle it myself)?
46745
How can you programmatically tell an HTML select to drop down (for example, due to mouseover)?
56204
I am more used to the Javascript style event handlers,  but is there a similar thing in applescript that listens to system events like logout or shutdown to execute code  or is there a way to have an applescript run on shutdown or logout?  I know about  but I would rather have something free.  All my script does is mute the volume for the next startup.
81666
How do I remove the key 'bar' from an array foo so that 'bar' won't show up in  for(key in foo){alert(key);}
104687
I am using &lt;a&gt; tags for links on a web page. How do I disable the Tab key from selecting either of them?
6283
Is there a way to disable a tab in a ?
70327
In the chat, we often use backticks highlight code inside of sentences, exactly like how we do it here.  Unfortunately, it's located peculiarly close to the esc key, which has a nasty effect of clearing the chat input.  Outside of making a userscript, would it be alright to disable that effect so that I (and probably a bunch of others) don't throw my computer out the window when I lose a larger post to a misplaced keystroke?  Note: command+z (OSX) does not undo the delete.
30710
Duplicate question to , which was never answered. (Which option is worse, that I repost the same question, or that I thread necro the old post?)  Anyway, is there a way to disable specific keys when specific programs are running? Or alternatively, disable Dash when a specific program is running?
8751
Is it possible to simulate key press events programmatically in JavaScript?
62969
Is there a way in lightning to keep track of enqueued server side actions and cancel them if some event happens on the client before the action completes?
29400
I have a requirement to implement an "Unsaved Changes" prompt in an ASP .Net application.  If a user modifies controls on a web form, and attempts to navigate away before saving, a prompt should appear warning them that they have unsaved changes, and give them the option to cancel and stay on the current page.  The prompt should not display if the user hasn't touched any of the controls.  Ideally I'd like to implement this in JavaScript, but before I go down the path of rolling my own code, are there any existing frameworks or recommended design patterns for achieving this?  Ideally I'd like something that can easily be reused across multiple pages with minimal changes.
66017
When you click "start a bounty" then "cancel," href="#" exiles you to the top of the page and you lose your spot near the end of the question's comments. Clicking anywhere else on the page simply closes the bounty popup; clicking "cancel" ought to do the same.  In case that wasn't clear:    Dramatization aside, it's a nuisance. Can the click event on that anchor be preventDefaulted?
57153
Yes, I know there's a script for that. But I think it's useful enough to be inserted into the live chat for everyone.  The following keyboard shortcuts are incredibly useful:   CTRLUp and CTRLDown - For replying to messages (each Ctrl+Arrow should change the :[message ID] in the chat input. CTRLSpace - For retrying a failed message, or ESC to cancel it. There should also be a keyboard shortcut to edit a failed message as per the newest functionality (Maybe the Down key?)   Using a chat with only the keyboard is very useful, it will be especially appreciated on chats with a more technical nature.
97818
I am trying to detect whether the 'a' was entered as the first string argument.
63143
Can I somehow disable spell-checking on HTML textfields (as seen in e.g. Safari)?