Question:- What is the output when you use the HTML 5.0 code snippet shown below?
<body onload=”alert(this)”>
a. It will alert saying “[object HTMLBodyElement]” when the document is loaded.
b. It will alert saying “[object Window]” when the document is loaded. 
c. It will alert saying “[this]” when the document is loaded.
d. The alert message is not properly defined in the body element and an error will be generated when the document is loaded.

Leave a Reply

Your email address will not be published. Required fields are marked *