Author Question: What does the srcElement event property contain? (a) A reference to the source code of an ... (Read 13 times)

mcmcdaniel

  • Hero Member
  • *****
  • Posts: 550
What does the srcElement event property contain?
 
  (a) A reference to the source code of an element.
  (b) A reference to the element that fired the event.
  (c) A reference to the source code of an image.
  (d) A reference to the name of the event that fired.

Question 2

If you used the ONMOUSEMOVE event to capture mouse events over an image, which of the following event properties would you use to capture the location of the mouse cursor relative to the image boundaries?
 
  (a) altkey
  (b) clientX / clientY
  (c) screenX / screenY
  (d) offsetX / offsetY



ebe

  • Sr. Member
  • ****
  • Posts: 320
Answer to Question 1

Ans: (b)

Answer to Question 2

Ans: (d)



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question


 

Did you know?

Opium has influenced much of the world's most popular literature. The following authors were all opium users, of varying degrees: Lewis Carroll, Charles, Dickens, Arthur Conan Doyle, and Oscar Wilde.

Did you know?

The immune system needs 9.5 hours of sleep in total darkness to recharge completely.

Did you know?

The top 10 most important tips that will help you grow old gracefully include (1) quit smoking, (2) keep your weight down, (3) take supplements, (4) skip a meal each day or fast 1 day per week, (5) get a pet, (6) get medical help for chronic pain, (7) walk regularly, (8) reduce arguments, (9) put live plants in your living space, and (10) do some weight training.

Did you know?

Chronic marijuana use can damage the white blood cells and reduce the immune system's ability to respond to disease by as much as 40%. Without a strong immune system, the body is vulnerable to all kinds of degenerative and infectious diseases.

Did you know?

The Centers for Disease Control and Prevention has released reports detailing the deaths of infants (younger than 1 year of age) who died after being given cold and cough medications. This underscores the importance of educating parents that children younger than 2 years of age should never be given over-the-counter cold and cough medications without consulting their physicians.

For a complete list of videos, visit our video library