Mouse events in JavaScript - Basic JavaScript Fast (64)

Mouse events in JavaScript - Basic JavaScript Fast (64)

Begin Coding Fast

9 месяцев назад

25 Просмотров

There are a number of mouse events in JavaScript. We can execute some code in response to the mouse action, such as the mouseover and mouseout events, the mousedown and mouseup events, mousemove event, click and contextmenu events. We just need to specify these event in the event listener.

JavaScript can also recognize the mouse buttons that a user has clicked on. The left, middle, right buttons can be recognized, as well as the backward and forward buttons.

When the clicking is done while pressing some special keys on the keyboard (alt, ctrl, shift, cmd), JavaScript is able to recognize those keys as well.

The mouse event can also return the coordinates of the cursor. All the window coordinates, document coordinates, and screen coordinates can be obtained.

Playlist of my JavaScript course
https://www.youtube.com/playlist?list=PLtQo0sxRN7JJQzQV_p_9RKy1eXVEmUIRl

Playlist of my HTML5 and CSS3 tutorials
https://www.youtube.com/playlist?list=PLtQo0sxRN7JIENxPo4cVWN8wbOjQZE3MX

Playlist of my algorithm walkthrough
https://www.youtube.com/playlist?list=PLtQo0sxRN7JLcH6q-PeqLz6ZtnYpDa4ul

Playlist of my Java course
https://www.youtube.com/playlist?list=PLtQo0sxRN7JLr647f8RTzS58u8Rv5jxT5

Playlist of my Java examples
https://www.youtube.com/playlist?list=PLtQo0sxRN7JKKla3_GAF05dySjyy3nINa

#javascripttutorial #javascriptfullcourse #begincodingfast #javascript #mouseevent

Тэги:

#mouse_event_js #javascript_mouseover #javascript_mousemove #javascript_mouse_click_event #javascript_mousedown #javascript_mouseout #javascript_mouse_right_click #javascript_mouse_cursor #javascript_mouse_event_x_y #mouse_event_in_javascript #mouse_event_listener_javascript #javascript_tutorial #javascript_tutorial_for_beginners #javascript #javascript_course #javascript_course_for_beginners
Ссылки и html тэги не поддерживаются


Комментарии: