Difference between revisions of "Enhance focus.js"

From Level Access Web Labs
Jump to navigation Jump to search
(Created page with "(function() { var style = document.createElement('style'); style.type = 'text/css'; style.appendChild(document.createTextNode('')); document.head.appendChild(style); ...")
 
Line 4: Line 4:
 
   style.appendChild(document.createTextNode(''));
 
   style.appendChild(document.createTextNode(''));
 
   document.head.appendChild(style);
 
   document.head.appendChild(style);
   style.sheet.addRule('*:focus','outline: red solid thick !important',-1);
+
   style.sheet.insertRule('*:focus','outline: red solid thick !important',-1);
 
})();
 
})();

Revision as of 23:31, 30 August 2015

(function() {

 var style = document.createElement('style');
 style.type = 'text/css';
 style.appendChild(document.createTextNode());
 document.head.appendChild(style);
 style.sheet.insertRule('*:focus','outline: red solid thick !important',-1);

})();