New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam 70-480 Topic 5 Question 4 Discussion

Actual exam question for Microsoft's 70-480 exam
Question #: 4
Topic #: 5
[All 70-480 Questions]

You are creating a JavaScript function that displays the name of a web application.

You declare the following button element.

When a user clicks the button, a JavaScript function named About must be called.

You need to create an event handler that calls the About function when the button is clicked.

Which two code segments can you use? (Each correct answer presents a complete solution. Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: C, D

C: addEventListener

The addEventListener() method attaches an event handler to the specified element.

In context of a worker, both self and this refer to the global scope. The worker can either add an event listener for the message event, or it can define the onmessage handler to listen for any messages sent by the parent thread.

D: attachEvent method

Registers an event handler function (event listener) for the specified event on the current object.


http://help.dottoro.com/ljeuqqoq.php

http://help.dottoro.com/ljinxrmt.php

Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77