Home »
MCQs »
JavaScript MCQs
Which JavaScript method is used to write into an alert box?
13. Which JavaScript method is used to write into an alert box?
- window.alertHTML()
- window.alert()
- window.alertBox()
- window.alertContent()
Answer: B) window.alert()
Explanation:
The JavaScript method window.alert() is used to write into an alert box.