Skip to content

Instantly share code, notes, and snippets.

@peponi
Created August 19, 2021 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peponi/86eb9eb445d9d07a6b64714af6e055c6 to your computer and use it in GitHub Desktop.
Save peponi/86eb9eb445d9d07a6b64714af6e055c6 to your computer and use it in GitHub Desktop.
Debug :focus in CMS
var css = document.createElement('style');
css.type = 'text/css';
var styles = 'a:focus {background: blue}';
if (css.styleSheet) css.styleSheet.cssText = styles;
else css.appendChild(document.createTextNode(styles));
document.getElementsByTagName("head")[0].appendChild(css);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment