PrepAway - Latest Free Exam Questions & Answers

What is the expected result of this script?

Consider the following code:

What is the expected result of this script?

PrepAway - Latest Free Exam Questions & Answers

A.
When you leave the page, the alert box will display.

B.
The page will ignore the function, so a blank page will display on entry and exit.

C.
When you enter the page, you will be warned that there is unfinished JavaScript to run.

D.
When you leave the page, there will be a JavaScript error because you cannot unload an alert
box.

Explanation:

PrepAway - Latest Free Exam Questions & Answers

Leave a Reply