the JavaScript code snippet windowonloadfunctionalertloaded

the JavaScript code snippet

window.onload=function(){alert(\"loaded\");}

is an example of

a) the use of an alert dialog prior to going back a page

b) an anonymous function assigned to the window on load event

c) the use of a confirmation dialog box prior to leaving a page

d) the use of an alert dialog prior to leaving a page

e) a function that defines its name (alert) in the body of the function

Solution

The above JavaScript Code snippet, window.onload=function(){alert(\"loaded\");} does the following things.

d) the use of an alert dialog prior to leaving a page

the JavaScript code snippet window.onload=function(){alert(\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site