Programming Languages JavaScript Objective
Mar 06, 2013

If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

Choose the correct answer:
A) "New Text"?
B) para1.value="New Text";
C) para1.firstChild.nodeValue= "New Text";
D) para1.nodeValue="New Text";
Detailed Explanation

Option B is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback