I want to change the text on a button 5 times when I click on it
<pre><code>function click(){
    if(document.getElementByID("Buttonname").value=="Created")
        document.getElementByID("Buttonname").value="Open"
}
</code></pre>

<p>I am using this code but it's not working properly. Please suggest.</p>
