Javascript & CSS toggle

				
					<!DOCTYPE html>
<html>
<head>
<title>HTML, CSS and JavaScript demo</title>
  <style type="text/css">
    .run{
      width:200px;
      height:200px;
      background-color: blue;
    }
    
    .active.run{
      background-color: red;
    }
    
  </style>
  
  
</head>
<body data-rsssl=1>

 
<div id="box"  class="run" onclick="toggle();">12313</div>

  
  <script>
    function toggle() {
    document.getElementById("box").classList.toggle("active");
    }
</script>
  

</body>
</html>