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...

Functions do not work the same way in Access and Excel

Indicate whether the statement is true or false

Computer Science & Information Technology

Case WD 1-1Amanda has been using the Save and Save As command interchangeably, and it has caused some problems with her files. Amanda had opened her file from last year, "Junior Year Class Trip.docx," and spent about an hour updating the text and photos to show the information from her Senior Year Class trip.When she was finished she clicked the "Save As" button on the Quick Access toolbar and entered the name "Senior Year Class Trip" as the file title. What information will be in the "Junior Year Class Trip.docx file?

A. Information from her Junior Year Class Trip B. Information from her Senior Year Class Trip C. No information, the document will be blank D. Text only on both trips, no photos will be saved

Computer Science & Information Technology

For standard user accounts, the user needs to know an administrator account user name and the password to authorize User Account Control.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

All the workstations at a company have a static IP address. A newly deployed workstation is unable to connect to the company intranet server using an Internet browser. The technician can ping the intranet servers IP address. The MOST likely cause of this is an incorrect:

A. VLAN. B. IP address on the new workstation. C. DNS server setting on the client. D. gateway setting on the client

Computer Science & Information Technology