Created
August 19, 2021 07:56
-
-
Save peponi/86eb9eb445d9d07a6b64714af6e055c6 to your computer and use it in GitHub Desktop.
Debug :focus in CMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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