I'm writing a Firefox addon that is triggered whenever a word is highlighted. However I need a script that detects when a word is highlighted, and I'm stuck. An example would be nytimes.com (when you're reading an article and you highli...
i know that you with $(window).width() can get the size of the web browser.  i want to detect when the user change the size of his web browser so i could readjust the columns width. is there a way to automatically detect this or do i have to use setT...
Using JS, how can I detect if a special character is entered into an input field as it's typed?  EDIT: Special character being defined as non-alpha/numeric character  EDIT(2):  If it helps anyone else, here's what I came up with:  HTML  <...
We are developing a Web-App, which launches on Desktop and on tablets (iPad, Android or a surface). Now we are building our own keyboard for number inputs. When you set the focus on an input field with a mousclick, the costum keyboard opens correct....
I have a form that detects if all the text-fields are valid on each keyup() and focus(); if they're all valid, it will enable the submit button for the user to press. However, if the user fills in one of the text inputs with a browsers autocomple...
Here is the situation:  I have a web page that needs to check through JavaScript if my app is already installed on the android device it is currently running on.  If the app is installed the page will show a link (with custom protocol) to launch the...
Is it possible to detect when a page is bookmarked within the browser, using Javascript?...
How to detect first top element (who is visible on window view) when scrolling ?  Like this...    I begin with..  $(window).scroll($.debounce(250,function(){     $('.box').removeClass('current').each(function() {        //if(statement...
I was wondering if there is a way of counting <img> tags uploaded by users before a <hr> tag with no id or class(es).    Here's my code so far:  var num = $('#content img').length; alert(num);  <div id="content">...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.