_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


<script src="https://unpkg.com/hyperscript.org@0.0.3"></script>

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

<div _="on mouseenter add .visible to #help end
        on mouseleave remove .visible from #help end">
  Mouse Over Me!
<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


Mouse Over Me!
I'm a helpful message!