As it is currently written, each call to the OldMacVerse function displays a new verse in the page division, overwriting any previous verse that may have been displayed. If we instead wanted each new verse to be appended to the previous verses, only a small change is necessary. In general, an assignment of the following form will append 'NEW TEXT' to the end of the contents of a page division with identifier DIV_ID.

document.getElementById('DIV_ID').innerHTML =
document.getElementById('DIV_ID').innerHTML + 'NEW TEXT';

The assignment works by taking the current value of the page division, appending 'NEW TEXT' to the end of that text, and then assigning the updated text back to the page division.
Modify the assignment in the OldMacVerse function in your oldmac.html page so that each verse is appended to the page division.


```








Old MacDonald




Old MacDonald












```

Computer Science & Information Technology

You might also like to view...

To add entries to iDiary you would

a. modify the XML file b. modify the XSL file c. make changes to both files d. once created the file cannot be changed

Computer Science & Information Technology

Files stored in a Zip file take up less storage space and are easier to transfer via e-mail

Indicate whether the statement is true or false

Computer Science & Information Technology

Describe how security testing differs from ordinary functionality testing. What are the criteria for passing a security test that differ from functional criteria?

What will be an ideal response?

Computer Science & Information Technology

You can create a blank form using the Form Wizard.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology