how to get acces of div using class name in javasript code example Example: javascript get class name document.getElementById("myDIV").className = "mystyle";