Remova o elemento de classe
function myFunction() {
var element = document.getElementById("myDIV");
element.classList.remove("mystyle");
}
Whynot
function myFunction() {
var element = document.getElementById("myDIV");
element.classList.remove("mystyle");
}