JavaScript Change Div innerHTML functionlaity can be developed by using JavaScript DOM innerHTML property. In this sample innerHTML property of the object returned by getElementById method of JavaScript DOM has been used to change the innerHTML of Div element dynamically.
JavaScript DOM Features Used
1. document object
2. getElementById method
3. innerHTML property
Try the sample below to learn and practice the JavaScript DOM code for developing this functionality: