A simple way, that does not involve refreshing, is to create a variable in the HTML header
"
Next, surround the button with span tags and give the span and id and set the display to “none”.
dfasklfdjsa
In the onLoad event, check the variable and change the display property of the span as needed. Note that I am using the prototype library. If you aren’t using a lib that incorporates prototype the syntax below will not work. You will have to use getElementByID, then apply the style attribute.