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 have reduced this to the minimum code to show this problem. The problem is that this works fine on Chrome on my computer, but on Chrome on my Android, it doesn't work properly. First, the highly simplified code:  <html><head><scr...
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'm making a primitive game with Javascipt for fun.  I have set up functions to move my character around when the arrow keys are pressed as follows:  document.getElementById("character").style.top = 0; document.getElementById("charact...
I'm trying to move a div up and down using two keys in Javascript. The idea is that while a certain key is depressed, a function loops and adds to the div's 'top' style value each time. The basic function works, but I can't get it...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.