This page introduces WSphynxJS events
Here, you are going to learn how to:
- Add an event for a specific div.
Add an event for a specific div
Event tags let you interact with your HTML code. To add an event tag, it is necessary to understand what a wsdiv is.
The event tag is composed of "ws"+"on"+theNameOfTheEvent:
Qui scribit bis legit
element.textContent = "Clic";
element.textContent = "Up";
NOTE: you can code in pure JS inside an event. See the Scripts chapter for more information.