Line 695: | Line 695: | ||
function myFunction() { | function myFunction() { | ||
var x = document.getElementById("myDIV"); | var x = document.getElementById("myDIV"); | ||
− | if (x.style.display == | + | if (x.style.display === "block") { |
− | + | ||
− | + | ||
x.style.display = "none"; | x.style.display = "none"; | ||
+ | } else { | ||
+ | x.style.display = "block"; | ||
} | } | ||
} | } |
Revision as of 16:08, 28 October 2017