hyperscript is an experimental scripting language designed for the web, inspired by HyperTalk
hyperscript features include:
You can see a comparison of hyperscript, vanillaJS and jQuery here.
<script src="https://firstname.lastname@example.org"></script> <button _="on click toggle .big-text"> Toggle the "big-text" class on me on click </button> <div _="on mouseenter toggle .visible on #help until mouseleave"> 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>
Here are the examples above in demo form:
the unknown button
so often inscrutable
now says what it does