<h1>En vanlig rubrik</h1>
<p>Li Europan lingues es membres del sam familie. Lor separat existentie es un myth.</p>
<div>
  <button id="togglesomething" onClick="minFunktion();">toggle something on/off</button>
body.toggled {
  background-image: linear-gradient( #e66465 0%, #9198e5 100%);
  background-repeat:no-repeat;
}

#togglesomething {border-radius:5px;padding:1em}
// hämta body elementet och spara i en variabel
var b = document.body;

function minFunktion() {
  b.classList.toggle('toggled');
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.