Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
0いいね 117回再生

Eloquent JavaScript 15 Event Handling Part 2: Mouse Events, Touch Events, Load, Focus, etc.

For part 2 of chapter 15, let's start with the mouse events. We have "mousedown", "mouseup", "click", "dbclick", and "mousemove". To get where the event happens, we have "clientX" and "Y". The coordinate you get from these two are relative to the top-left corner of the window. If you want to get the coordinate relative to the whole document, you can use "pageX" and "Y".

Mouse Events, Touch Events, Load, Focus, etc.

Here is the link to the chapter 15 of Eloquent JavaScript

eloquentjavascript.net/15_event.html
Buy the 3rd version on Amazon: amzn.to/3oaKPGc
Disclosure: As an Amazon Associate I earn a small commission from qualifying purchases. There is NO EXTRA COST to you.
==========================================
If you haven't watched the videos for the other chapters, check them out now:

Chapter 1: Value Types
youtube.com/watch?v=R_vJx...

Chapter 2: Program Structure
   • Eloquent JavaScript Tutorial Chapter 2: Pr...  

Chapter 3: Functions
   • Eloquent JavaScript Tutorial Ch.3 Functions  

Chapter 4: Objects and Arrays
   • Eloquent JavaScript Tutorial Chapter 4 Obj...  

Chapter 5: High-order Functions
   • Eloquent JavaScript Tutorial 5 High-order ...  

Chapter 6: The Secret Life of Objects
   • Eloquent JavaScript 6 Objects  

Chapter 7: The Binding of This
   • Eloquent JavaScript Chapter 7: The Binding...  

Chapter 8: Bugs and Errors Handling
   • Eloquent JavaScript Chapter 8: Bugs and Er...  

Chapter 9: Regular Expression Pt.1
   • Eloquent JavaScript 9 Regular Expression T...  

Chapter 9.2: Regular Expression Pt.2
   • Eloquent JavaScript #9.2 Regular Expressio...  

Chapter 9.3: Regular Expression Pt.3
   • Eloquent JavaScript #9.3 Regular Expressio...  

Chapter 10: Modules
   • Eloquent JavaScript 10: Modules  

Chapter 11: Asynchronous Programming
   • Eloquent JavaScript 11: Asynchronous Progr...  
   • Eloquent JavaScript 11.2: Asynchronous Pro...  

Chapter 12: A Programming Language
   • Eloquent JavaScript 12: A Programming Lang...  

Chapter 13: JavaScript and the Browser
   • Eloquent JavaScript 13: JavaScript and the...  

Chapter 14: The Document Object Model
Part 1:    • Eloquent JavaScript 14: The Document Objec...  
Part 2:    • Eloquent JavaScript 14 The Document Object...  
Part 3:    • Eloquent JavaScript 14 The Document Object...  

Chapter 15: Event Handling
Part 1:    • Eloquent JavaScript 15 Event Handling Part 1  
Part 2:    • Eloquent JavaScript 15 Event Handling Part...…

Keywords: #Eloquent JavaScript, JavaScript, #JavaScript #Tutorials, Learn JavaScript, JavaScript Beginner, Learn Coding, Learn Programming, IT Books, JavaScript #Books, Programming Books, Coding Tutorials, Programming Tutorials, #DOM, Document Object Model, #Event_Handling, #Mouse_Events, #Touch_Events, #Load, #beforeunload #Focus #blur

コメント