ICT
April 5, 2024Software-Engineering
April 6, 2024NVS PGT CS 2017 Part-B
|
Question 12
|
Shreya is adding links to her school website. She wants that the link colour should change as soon as the visitor’s mouse pointer is over the link and then the original colour of the link should be restored when the mouse points anywhere else on the page. which of the following two event handlers will be required for the script to achieve this effect ?
|
onMouseDown and onMouseUp
|
|
|
onMouseIn and onMouseOut
|
|
|
onMouseOver and onMouseOut
|
|
|
onMouseOver and onMouseUp
|
Question 12 Explanation:
onmouseout:The event occurs when a user moves the mouse pointer out of an element, or out of one of its children
onmouseover:The event occurs when the pointer is moved onto an element, or onto one of its children
onmouseover:The event occurs when the pointer is moved onto an element, or onto one of its children
Correct Answer: C
Question 12 Explanation:
onmouseout:The event occurs when a user moves the mouse pointer out of an element, or out of one of its children
onmouseover:The event occurs when the pointer is moved onto an element, or onto one of its children
onmouseover:The event occurs when the pointer is moved onto an element, or onto one of its children
