similar enough that i'll share, I think i learned this from an HN comment, you can put the code for a page in the url (with obvious limits):
this works as a "url" in both chrome and safari:
data:text/html, <html contenteditable><head><title>notes</title></head><body><textarea rows=36 cols=140></textarea></body></html>