This repository was archived by the owner on Jun 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
$.onEvent()
Arthur Guiot edited this page Jul 5, 2017
·
1 revision
The $.onEvent() makes possible to manage a lot of different event through HTML attributes/tags. It's super simple and intuitive, you simply need to add the attributes on="" and action="" to an HTML element and to run this function, and you're done.
As I said, it's super simple and intuitive, so let's take an example to make sure it's clear.
Let's say you have a button and when you click on it, there is an alert poping up.
HTML:
<button on="click" action="alert('You clicked on me!')">Click on me!</button>JS:
$.onEvent();Don't hesitate to ask your questions
- Home
- The Core Languages
- Getting Started: Installation
- The Basics (
$.var()+$.target()) - Developing for DisplayJS
-
$.select()- Text related
- If...else
$.xss()$.repeat()$.custom()$.live()$.load()$.on()$.onEvent()$.ready()- Scroll API
$.all()$.clone()$.is()$.valEmpty()$.remove()$.show()&$.hide()$.ajax()- Class Related
$.css()$.getStyle()- Fade effects
$.extend()$.dynamic()$.parent()- Elements-Nodes
$.component()$.time_ago()$.copy()$.then()$.sleep()$.getProp()