Here\'s my code:
if (document.getElementById(\"hiddenButton\").style.visibility != \"visible\") { document.getElementById(\"hiddenButton\").style.visibili
The = is an assignment operation.
=
The != is an inequality operator.
!=
The == is an equality operator.
==
I guess what you need is the == operator. So replace your code with:
if (document.getElementById("hiddenButton").style.visibility == "hidden") {