What is the purpose of the onload statement in line 18 in the code shown in Figure 11.27?

A. To load the tree.png. Otherwise it will not load.
B. To make the program to wait for tree.png to load. If it is not loaded before the JavaScript program starts, it will not show up.
C. It is a syntactical requirement to use onload with the drawImage() statement.

B. To make the program to wait for tree.png to load. If it is not loaded before the JavaScript program starts, it will not show up.

Computer Science & Information Technology

You might also like to view...

What type of e-commerce would be utilized when an individual develops his or her own Web page and takes orders directly for goods and services?

A) consumer to individual B) individual to individual C) consumer to consumer D) business to individual

Computer Science & Information Technology

Medical professionals identify stress as acute or chronic, and stressors as external

Indicate whether the statement is true or false

Computer Science & Information Technology