Consider the following code:

What is the expected result of this script?
Select an option, then click Submit answer.
-
○
When you leave the page, the alert box will display.
-
○
The page will ignore the function, so a blank page will display on entry and exit.
-
○
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.
