Report question

Question: How can I make button label dynamic using javascript?