- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to detect eventType in jQuery?
To detect the eventType in jQuery, use the event type property. You can try to run the following code to learn how to detect eventType in jQuery −
Example
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("p").on("mouseover mouseout",function(event){ $("div").html("Event Type: " + event.type); }); }); </script> </head> <body> <div> <p>This has mouseover and mouseout event defined. Keep your cursor to see the event type below.</p> </div> </body> </html>
- Related Articles
- How to detect Ctrl+Enter in textarea using jQuery?
- How to detect pressing Enter on keyboard using jQuery?
- How to Detect Keyloggers?
- Detect compatibility of the new HTML5 tag with jQuery.
- Is it possible to detect when images are loaded via a jQuery event?
- How to detect integer overflow in C++?
- How to detect long press in Android?
- How to detect shake events in Kotlin?
- How to Detect User Timezone in JavaScript?
- How to Detect User Timezone in PHP?
- How to detect serious ddos attack
- How to detect integer overflow in C/C++?
- How to detect a long press in iOS?
- How to detect calls in an android device?
- How to detect application heap size in android?

Advertisements