READ Free Dumps For Microsoft- 70-480
Question ID 14862 | You are creating a JavaScript function to display the current version of a web application
You declare a button as follows.
<input type="button" id="About" value="About" />
You need to create an event handler for the button by using an anonymous function.
Which code segment should you use?
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | C |
Explanation Explanation: Example When passing parameter values, use an "anonymous function" that calls the specified function with the parameters: document.addEventListener("click", function() { myFunction(p1, p2); }); Reference: HTML DOM addEventListener() Method
Question ID 14863 | You implement an application by using HTML5 and JavaScript. You create a webpage that
contains the following HTML:
The application must place a border on only the first UL element that is contained in the
DIV element.
You need to update the webpage.
What should you do?
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | D |
Explanation Explanation: Example: CSS File: ul { border: 1px solid black; } Inline CSS: