i try to capture this key : alt+arrow down, alt+arrow up. First, i capture alt key down :  var isAlt = false; $(document).keydown(function (e) {       if(e.which == 18){isAlt=true;}  }).keyup(function (e) {     if(e.which == 18){isAlt=false;} });   t...
I am building a web page and have run into something that would be nice to be able to do; set text to be copied to the clipboard when someone tries to copy an image, probably the same as the alt text. Is there any way with javascript/html that this c...
I have a requirement to add the alt attribute to each of the images on each of my web pages. The problem is that there are hundreds of images on some of those web pages.  Can anyone suggest an approach using JavaScript or jQuery that, for each image...
I'm working on React project and we are using Alt library for handling actions and stores. I can not find an answer to how is it possible to chain two actions without resorting to setTimeout() or otherwise hacking the Flux paradigm.  My understan...
We have some 3rd party content coming into one of our websites that need to adhere to WCAG 2.0 Level A requirements.  The html coming in through the RSS feed doesn't provide proper alt attributes to the img tags. We were hoping to add the alt att...
I know there are ways to detect an alt-click, but I'm curious- is it possible to alt-click an element?  You could call the function that the click event calls, but just say hypothetically we're dealing with some system that dynamically genera...
EDIT: See the end of this question for my solution based on the first answer given (which I have "ticked" in green).   Take at look at this simple static html page: (these are just images i found using google image search, to explain the q...
Using Firefox, I can use window.getSelection() in order to get the selected text.  If I selected an image, the alt attribute is returned.  However, if I use .getRangeAt(0), the selection is returned without the alt attribute.  I would like it to be p...
I'm currently trying to get the img alt tag from each image on a slideshow and use that as the caption to be displayed below the slide.   Is there any simple way of doing this with javascript and css?  Thank you in advance!   Here's a link to...
Is it possible to show an image via mouseover on a link whose only matching tags are title and alt?  My CMS can only generate matching title and alt tags for 2 completely seperated elements. It roughly looks like this:  <a href="#" title=&...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.