///_hyperscript

intro

_hyperscript is a small, open scripting language designed to be embedded in HTML and inspired by HyperTalk

it is a companion project of https://htmx.org

samples

<button _="on click toggle .big-text">
  Toggle the "clicked" class on me
</button>

<div _="on mouseenter add .visible to #help end
        on mouseleave remove .visible from #help end">
  Mouse Over Me!
</div>
<div id="help"> I'm a helpful message!</div>

<button _="on click log me then call alert('yep, it\’s an alert')">
    Show An Alert
</button>

demos

Mouse Over Me!
I'm a helpful message!