Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change Button value

Status
Not open for further replies.

BStopp

Programmer
Dec 29, 2003
29
US
In IE if you use javascript to change the 'value' attribute of a <button> it works fine, even displays the new value on the button as it should. However this doesn't work in any other browser but IE..

Can anyone tell me how to get it to work, such as: Is there a different attribute i need to change for non-IE users?

B
 
as in:

Code:
<button onclick="this.innerHTML = 'hello';">Goodbye</button>

*cLFlaVA
----------------------------
[tt]tastes great, less filling.[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top