WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: htmz (snippet) - Html with Targeted Manipulation Zones  (Read 273 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 622
  • ~.~
htmz (snippet) - Html with Targeted Manipulation Zones
« on: July 22, 2024, 08:47:59 PM »
found this interesting snippet
Code: [Select]
<iframe hidden name=htmz onload="setTimeout(()=>document.querySelector(contentWindow.location.hash||null)?.replaceWith(...contentDocument.body.childNodes))"></iframe>
Quote
htmz does one thing and one thing only.

    Enable you to load HTML resources within any element in the page.

@ https://leanrada.com/htmz/ || https://github.com/Kalabasa/htmz

big <3
for
minimal scr!

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: htmz (snippet) - Html with Targeted Manipulation Zones
« Reply #1 on: July 23, 2024, 05:38:25 AM »
good find, thanks :)
i had already looked at htmx and was also impressed.

i never got the problem with iframes and why people tried to get rid of them... :(