Difference between revisions of "Enhance focus.js"

From Level Access Web Labs
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
   style.appendChild(document.createTextNode(''));
 
   style.appendChild(document.createTextNode(''));
 
   document.head.appendChild(style);
 
   document.head.appendChild(style);
   style.sheet.insertRule(*:focus { outline: red solid thick !important; } ',-1);
+
   style.sheet.insertRule('*:focus { outline: red solid thick !important; } ',-1);
 
})();
 
})();

Latest revision as of 23:38, 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);

})();