Remove CSS class from ` element in the ``? – ZenMaster May 01 '14 at 07:20

  • yes I want to remove the entire css class from – user2005049 May 01 '14 at 09:33
  • 1 Answers1

    0

    For cross browser compatibility you will need to do something like this.

    var head = document.getElementsByTagName('head')[0];
    
    head.className = head.className.replace(/\bClassName\b/,'');
    
    Ian Brindley
    • 2,197
    • 1
    • 19
    • 28