Help to make a change class block when clicking on the link without?

How to make a class change when you click on the link without jQuery?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Untitled Document</title>
    <script src=""  type="text/javascript"></script>
		$(".karkas").toggleClass("karkas1"); return false;
<div class="karkas">

A good way to do it is as follows:

function buttonHandler() {
    var karkas = document.querySelectorAll('.karkas'),
    for (i = 0; i < karkas.length; i += 1) {
    return false;

var buttons = document.querySelectorAll('.button'),
for (i = 0; i < buttons.length; i += 1) {
    buttons[i] = buttonHandler;

If there’s only the one element that needs to be affected, then it would be as simple as this:

document.querySelector('button').onclick = fuction () {

However, it’s best to build in some flexibility when dealing with classes and allow for multiple ones to be affected, which results in the code from the previous post.

Very well thank you for such prompt help! Thank you!