javascript change button color onclick

 

 

 

 

In the following web document, onclick event handler executes function which changes the temperature from fahrenheit to celsius andbody>

JavaScript Button Objects Event handler : onclick

Input temperature and Click on the buttons to get converted Your code could look like this: