News for hackers. Stuff that matters.
Re:Web apps in a single, portable, self-updating, vanilla HT... by b2ccb2 on Tuesday August 19, 2025 @10:36AM (#44952021)
You can get rid of the JS by setting the autofocus[1] attribute to the textarea.

[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...

Re:Web apps in a single, portable, self-updating, vanilla HT... by qingcharles on Tuesday August 19, 2025 @08:55PM (#44957680)
Thank you, I'm going to try this.
Re:Web apps in a single, portable, self-updating, vanilla HT... by qingcharles on Wednesday August 20, 2025 @03:10AM (#44959436)
Thanks, I trimmed it down to this:

  data:text/html,<title>Notepad</title><textarea autofocus spellcheck=0 style="position:fixed;inset:0;padding:1em;border:0;font:monospace">