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. 

+ Answer
+ Report
Total Preview: 1683

Copyright © 2025. Powered by Intellect Software Ltd