{"id":5538,"date":"2024-11-11T09:00:00","date_gmt":"2024-11-11T08:00:00","guid":{"rendered":"https:\/\/blogs.ua.es\/pi\/?p=5538"},"modified":"2025-02-05T20:30:09","modified_gmt":"2025-02-05T19:30:09","slug":"como-registrar-cuando-un-elemento-reciba-el-foco","status":"publish","type":"post","link":"https:\/\/blogs.ua.es\/pi\/2024\/11\/11\/como-registrar-cuando-un-elemento-reciba-el-foco\/","title":{"rendered":"C\u00f3mo registrar cu\u00e1ndo un elemento recibe el foco"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">En <a href=\"https:\/\/hidde.blog\/console-logging-the-focused-element-as-it-changes\/\">Console logging the focused element as it changes<\/a> se explica c\u00f3mo registrar en la consola de las Herramientas del desarrollador  los elementos que reciben el foco:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>document.addEventListener('focusin', function() {\n  console.log('focused: ', document.activeElement)\n}, true);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>En Console logging the focused element as it changes se explica c\u00f3mo registrar en la consola &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/blogs.ua.es\/pi\/2024\/11\/11\/como-registrar-cuando-un-elemento-reciba-el-foco\/\"> <span class=\"screen-reader-text\">C\u00f3mo registrar cu\u00e1ndo un elemento recibe el foco<\/span> Read more \u2192<\/a><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5538","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/5538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/comments?post=5538"}],"version-history":[{"count":3,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/5538\/revisions"}],"predecessor-version":[{"id":5558,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/5538\/revisions\/5558"}],"wp:attachment":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/media?parent=5538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/categories?post=5538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/tags?post=5538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}