Dashcode newbie question: Change a button's label programmatically
Posted
by Koning Baard XIV
on Stack Overflow
See other posts from Stack Overflow
or by Koning Baard XIV
Published on 2009-08-06T12:23:19Z
Indexed on
2010/04/21
0:03 UTC
Read the original article
Hit count: 334
Hi all!
I'm new to Mac OS X Dashboard developement. Now, I have a button with id b_start. When that button is clicked, I want the label of the button to change to "Round".
Now I have tried these, but none of them work:
document.getElementById("b_start").label = "Round";
document.getElementById("b_start").text = "Round";
document.getElementById("b_start").innerText = "Round";
document.getElementById("b_start").object.setValue("Round");
document.getElementById("b_start").value = "Round";
Does anyone how I can change the button's label? Thanks in advance.
© Stack Overflow or respective owner