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

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

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

1.New Text?

2.para1.value="New Text";

3.para1.firstChild.nodeValue= "New Text";

4.para1.nodeValue="New Text";

Posted Date:-2021-02-20 13:15:56


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!