Maybe you heard about SPA:s, Single Page Applications. But you might not heard about Single Line Applications.
Some years ago i was into making practical js-bookmarklets for myself. A bookmarklet can look something like this:
<a href="javascript:alert('hello there!')">say hello</a>