If params is a DOM object for a paragraph, which of the following is a correct syntax to change the text in the paragraph?
If params is a DOM object for a paragraph, which of the following is a correct syntax to change the text in the paragraph?
यदि एक पैराग्राफ के लिए params एक DOM ऑब्जेक्ट है, तो पैराग्राफ में टेक्स्ट को बदलने के लिए निम्नलिखित में से कौन सा सही सिंटैक्स है?
Detailed Solution & Logic
params.value = "Updated Text";
जब हम किसी पैराग्राम में टेक्स्ट को बदलते हैं तो params.value = "Updated Text" सिंटैक्स का प्रयोग करते हैं। जिसमें updated टेक्स्ट लिखा जाता है।
Similar Practice Questions
Which of the following is used with the <img> tag as an attribute to specify an alternate text for an image, if the image for some reason cannot be displayed?
Which of the following is used with the <img> tag as an attribute to specify...
Which statement is used to come out switch block?
Which statement is used to come out switch block? स्विच ब्लॉक से बाहर आने के...
Which CSS property should one use to encircle an image with text?
Which CSS property should one use to encircle an image with text? किसी छवि को...
Which property is used to make the text bold in CSS?
Which property is used to make the text bold in CSS? CSS में Text को...
Give the output of the program
Give the output of the program प्रोग्राम का आउटपुट दें <html> <body> <script> var number...
Which of the following languages is a mark-uplanguage used to develop a simple website?
Which of the following languages is a mark-uplanguage used to develop a simple website? म्नलिखित...
What is the correct HTML tag for smallest heading size-
What is the correct HTML tag for smallest heading size- सबसे छोटे हेडिंग आकार के...