3 ms·
If you do not wish to use any javascript, you can use iframes and the "target" attribute on links and forms: https://developer.mozilla.org/en-US/docs/Web/HTML/
by recursivedoubts 2y ago
If you do not wish to use any javascript, you can use iframes and the "target" attribute on links and forms:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#...
However the user experience is pretty rough, which is why people typically don't use this feature.
If you want a minimal amount of javascript to achieve this, we (the htmx folks) also have fixi:
https://github.com/bigskysoftware/fixi https://github.com/bigskysoftware/fixi
Finally, we are working on introducing general transclusion into the HTML spec itself with the triptych project:
https://github.com/alexpetros/triptych https://github.com/alexpetros/triptych
however that is a ways off (if ever)