Skip to content

Instantly share code, notes, and snippets.

@jazz009
Created October 20, 2016 09:37
Show Gist options
  • Save jazz009/a8a5f06c20e0ccdc38a32c2c3328e0ae to your computer and use it in GitHub Desktop.
Save jazz009/a8a5f06c20e0ccdc38a32c2c3328e0ae to your computer and use it in GitHub Desktop.
JS - Ajouter un attribut a un element
document.getElementsByTagName('head')[0].setAttribute("class","democlass");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment