I have created a Chrome extension that uses the hotkeys [Alt]+[0...9] only to discover facebook uses the same hotkeys. Is there any way possible my extension could disable facebook's hotkeys so that mine fire alone? I'm fairly certain I have...
I want to detect when the enter key is pressed, on HTML that will be injected dynamically.  To simply detect when the enter key is pressed, I can do:  $('#textfield').keydown(function (e){     if(e.keyCode == 13){         console.log('Ent...
First of, I'd like to use only native JavaScript to complete this task.  Let's say I am to make a custom dropdown, and the HTML code looks kind of like this.  <div class="dropdown">   <span class="dropdown-label" styl...
I have the beginnings of a 2d javascript game - at the moment the player can drive a triangle around the screen using the arrow keys.  The problem is that sometimes the triangle will get stuck rotating in one direction or moving forward until the cor...
I want to make a form like this, and i want to post the form - with javascript - in all the keydowns.  <form action="{$formaction}" enctype="multipart/form-data" method="post"> <input type="text" name="n&#...
Edit: This snipped worked in the end. I had been trying this before but was actually experiencing a scoping issue with my javascript. I had appBack() defined in document.onready. Simply re-scoping that function to *window.*appBack = function(). Done...
My extensions go through every input entered on an  on any website that is loaded.  What I do is I consider every onkeydown and manipulate it if it has some value.  my background js file contains the following:  document.onkeydown = returnKey;   func...
I am working on a very time-sensitive application that uses key presses for user input. As I am talking milliseconds here, I went ahead and tried a version like this:    function start() {   //stim.style.display = "block";   rt_start = new Da...
...the reason I ask is that Safari has a bug in its implementation of scroll() that is breaking my UI.  Imagine a page:  <body>     <div id="huge" style="width: 4000px; height: 4000px;"></div> </body>   ...so t...
I am trying to add the onkeydown attribute to an asp:textbox. For some reason my code can't find the textbox that is inside a loginview.  Am I doing something wrong?  <script type="text/javascript"> window.onload = function() {...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.