Bait and switch javascript

I have a DIV that contains a sentence, call it Text_A. When a button is clicked, I would like to have Text_A replaced by Text_B.

Text_A = The sky is blue.
Text_B = The grass is green.

How would I do this with javascript?

A non-programmer thanks you immensely.

Mike

one way to do it is

  1. when the button is clicked, use getElementById() to get an object reference for the div containing the text.

  2. change the innerHTML property of the object in 1) to the value of the new text string.