Report Bug

QusWhich of the following is the property that is triggered in response to JS errors? Qusनिम्नलिखित में से कौन सी संपत्ति जेएस त्रुटियों के जवाब में ट्रिगर होती है?


A. onclick
B. onerror
C. onmessage
D. onexception


Solution
B. onerror



Explanation
The Window object’s onerror property acts as an event handler, and it is triggered when JavaScript problems occur. However, because it is called with various arguments, it isn’t a genuine event handler.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad