You troubleshoot a webpage that contains the following HTML markup: (Line numbers are included for
reference only.)
The webpage also contains the following JavaScript function named someEvent() that is declared in the HEAD
section of the HTML:
Function someEvent() {
Alert(‘someEvent fired!’);
}
The JavaScript function named someEvent() must run only when the user clicks the DIV element, not the
INPUT elements.
You need to modify the webpage to invoke the JavaScript function named someEvent().
What should you do? (Each correct answer presents a complete solution. Choose two.)

A.
Option A
B.
Option B
C.
Option C
D.
Option D
Correct answer is A and C:
[from other dub: https://www.briefmenow.org/microsoft/you-need-to-modify-the-webpage-to-invoke-the-javascript-function-named-someevent/%5D
A is correct.
I did try B and it does not work. D is clearly wrong, so it leaves C which I believe must be poorly coded as mentioned above but it should be the right answer.
13
0
A is OK
B is (partially) OK. You should remove attribute onclick=”stopPropagation(event)” from the input elements and place it on their parent span element that you just wrapped them with.
The way I like to handle this scenario, I would chose something similar to C, and discern which element is clicked and handle it accordingly. But I admit, A and modified B is cleaner.
0
1
A AND B
0
0
SORRY A AND C
2
0