Klassenelement entfernen
function myFunction() {
var element = document.getElementById("myDIV");
element.classList.remove("mystyle");
}
Whynot
function myFunction() {
var element = document.getElementById("myDIV");
element.classList.remove("mystyle");
}