AmitDiwan has Published 10744 Articles

HTML DOM MouseEvent Object

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 07:20:32

416 Views

The HTML DOM MouseEvent Object represents an event which incurs on interaction of mouse with the HTML document elements.Here, “MouseEvent” can have the following properties and methods −Property/MethodDescriptionaltKeyItreturns whether the "ALT" key on keyboard was pressedwhen the mouse event was triggeredbuttonItreturns a number corresponding to which mouse button was pressedwhen ... Read More

HTML DOM MouseEvent screenY Property

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 06:54:17

98 Views

The HTML DOM MouseEvent screenY property returns the vertical (y) coordinate of the mouse pointer relative to the users screen display if a mouse event was triggered. Use with screenY to get the horizontal coordinate as well.Following is the syntax −Returning reference to the screenY objectMouseEventObject.screenYLet us see an example ... Read More

HTML DOM MouseEvent screenX Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 12:33:14

106 Views

The HTML DOM MouseEvent screenX property returns the horizontal (x) coordinate of the mouse pointer relative to the users screen display if a mouse event was triggered. Use with screenY to get the vertical coordinate as well.Following is the syntax −Returning reference to the screenX objectMouseEventObject.screenXLet us see an example ... Read More

HTML DOM MouseEvent relatedTarget

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 12:28:44

104 Views

The HTML DOM MouseEvent relatedTarget property returns the corresponding element that triggered the respective mouseover or mouseout event.Following is the syntax −Returning reference to the relatedTarget objectMouseEventObject.relatedTargetLet us see an example of MouseEvent relatedTarget property −Example Live Demo MouseEvent relatedTarget    * {       padding: 2px; ... Read More

HTML DOM MouseEvent pageY Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 12:24:33

96 Views

The HTML DOM MouseEvent pageY property returns the vertical (y) coordinate of the mouse pointer relative to the document if a mouse event was triggered. Use with pageX to get the horizontal coordinate as well.Following is the syntax −Returning reference to the pageY objectMouseEventObject.pageYLet us see an example of MouseEvent ... Read More

HTML DOM MouseEvent pageX Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 12:10:10

101 Views

The HTML DOM MouseEvent pageX property returns the horizontal (x) coordinate of the mouse pointer relative to the document if a mouse event was triggered. Use with pageY to get the vertical coordinate as well.Following is the syntax −Returning reference to the pageX objectMouseEventObject.pageXLet us see an example of MouseEvent ... Read More

HTML DOM MouseEvent offsetY Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 12:03:43

98 Views

The HTML DOM MouseEvent offsetY property returns the vertical (y) coordinate of the mouse pointer relative to the target element if a mouse event was triggered. Use with offsetX to get the horizontal coordinate as well.Following is the syntax −Returning reference to the offsetY objectMouseEventObject.offsetYLet us see an example of ... Read More

HTML DOM MouseEvent clientY Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 11:36:40

108 Views

The HTML DOM MouseEvent clientY property returns the vertical (y) coordinate of the mouse pointer if a mouse event was triggered. Use with clientX to get the horizontal coordinate as well.Following is the syntax −Returning reference to the clientY objectMouseEventObject.clientYLet us see an example of MouseEvent clientY property:Example Live Demo ... Read More

HTML DOM MouseEvent clientX Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 11:31:01

140 Views

The HTML DOM MouseEvent clientX property returns the horizontal (x) coordinate of the mouse pointer if a mouse event was triggered. Use with clientY to get the vertical coordinate as well.Following is the syntax −Returning reference to the clientX objectMouseEventObject.clientXLet us see an example of MouseEvent clientX property −Example Live Demo ... Read More

HTML DOM Meter optimum Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 11:22:03

99 Views

The HTML DOM Meter optimum property returns/sets a number corresponding to the optimum attribute of a element. Use this with high, low, min and max attributes for better results.NOTE: Don’t use as a progress bar but only as a gauge.Following is the syntax:Returning value of the optimum propertymeterElementObject.optimumValue ... Read More

Advertisements