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 = " | + | x.style.display = "none"; |
} else { | } else { | ||
− | x.style.display = " | + | x.style.display = "none"; |
} | } | ||
} | } |
Revision as of 15:56, 28 October 2017