Uzza
Just my online notepad
Skip to content
  • Home

Getting reference to the element in document which has a focus

By Łukasz Lipiński | 2012/11/16
0 Comment
var focused = document.activeElement

Suppored in all browsers.

Category: Javascript Tags: activeElement, currently focused element, javascript
Post navigation
← Selecting text in input field Checking if element matches CSS selector element.matchesSelector() →

Search

Categories

  • Animations
  • Apache
  • Bash
  • Books
  • Browsers
  • Commandline
  • Compatibility
  • Cron
  • Css
  • CSS3
  • Customizing mac
  • Designs
  • ECMAScript 5
  • ECMAScript 6
  • External Articles
  • Firebug
  • Fonts
  • Git
  • Git hooks
  • Grunt
  • HTML5
  • Images
  • Internet Explorer
  • iOS
  • Javascript
  • Javascript Best Practice
  • Javascript Patterns
  • Javascript Performance
  • Javascript Snippets
  • jQuery
  • JSLint
  • Linux
  • Mac OS
  • Mate
  • Media query
  • Mongodb
  • Node.js
  • NPM
  • Quake 3
  • Regular Expressions
  • Samba
  • SVN
  • Tools
  • Uncategorized
  • Userfriendly
  • VPS
  • Windows
  • WWW
  • Yeoman

Blogroll

  • Cloud9 IDE
  • InnoGames

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Tag Cloud

apache array bash chmod clone commands console Css Design dock drga&drop empty space firebug firefox getBoundingClientRect git html ie ie7 install javascript jQuery jslint listing files mac mate merge mozilla multiple versions of the same browser Node.js old versions osx performance permissions png repository revert screen selection shortcut svn terminal Tools Userfriendly virtualhosts
custom footer text left
custom footer text right
Iconic One Theme | Powered by Wordpress