Question:
Match the column JavaScript-Events with the column Descriptions.
जावास्क्रिप्ट-इवेंट्स और उनके विवरण का मिलान करें।
Options:
- a-ii, b-iii, c-iv, d-i
- a-iii, b-ii, c-iv, d-i
- a-ii, b-iv, c-iii, d-i
- a-iv, b-iii, c-i, d-ii
- a-ii, b-iii, c-iv, d-i
- a-iii, b-ii, c-iv, d-i
- a-ii, b-iv, c-iii, d-i
- a-iv, b-iii, c-i, d-ii
Correct Answer: a)
Explanation:
In JavaScript event handling:
– a) onchange: Triggered when the value of an input element (like \(<input>\), \(<select>\), or \(<textarea>\)) has been modified and committed by the user \(\rightarrow\) ii.
– b) onmouseover: Triggered when the user hovers/moves the mouse pointer over an element \(\rightarrow\) iii.
– c) onkeydown: Triggered at the instant the user presses down a key on the keyboard \(\rightarrow\) iv.
– d) onload: Triggered when the whole web page (including images, stylesheets, and scripts) has completely finished loading \(\rightarrow\) i.
Thus, the correct matching is a-ii, b-iii, c-iv, d-i.
Hence, option 1 is the correct answer.
जावास्क्रिप्ट (JavaScript) में ईवेंट्स का मिलान:
– a) onchange: तब ट्रिगर होता है जब किसी HTML फॉर्म एलीमेंट (जैसे इनपुट बॉक्स, ड्रॉपडाउन) का मान बदल दिया जाता है \(\rightarrow\) ii।
– b) onmouseover: तब सक्रिय होता है जब उपयोगकर्ता माउस कर्सर को किसी HTML एलीमेंट के ऊपर ले जाता है \(\rightarrow\) iii।
– c) onkeydown: तब सक्रिय होता है जब उपयोगकर्ता कीबोर्ड की कोई कुंजी दबाता है \(\rightarrow\) iv।
– d) onload: तब सक्रिय होता है जब वेब पेज और उसकी सामग्री ब्राउज़र द्वारा पूरी तरह लोड हो जाती है \(\rightarrow\) i।
अतः सही मिलान a-ii, b-iii, c-iv, d-i है।
अतः सही उत्तर विकल्प 1 है।