3 ms·
Does this work in modern browsers? If so then that’s amazing.
by codetrotter 2y ago
Does this work in modern browsers? If so then that’s amazing.
- j45 2y agoSeems to be in HTML5 as well. https://html.com/tags/object/ https://html.com/tags/object/ One thing that seems to get lost in modern programming is the JS frameworks arose in a time where HTML5+/CSS were also growing to gain some of those capabilities. For example, Web Components, Web Sockets, etc., are all pretty capable assuming it's a feature implemented in the browsers. In a recent project / prototype, the task was to build video capture and playing from scratch in html/ vanilla javascript. It was surprising how far it got compared to the libraries and frameworks out there. In the end, there were some tradeoffs to both but the consensus was no one had every considered HTML/JS alone could do it (even though js frameworks use.. js). Javascript30.com is a handy spot for new to JS developers to learn Javascript how I think it should be learned. First Vanilla, then Libraries, then Frameworks, in that order. Each helps fill in the "why" of the next.
- codetrotter 2y agoYeah the object tag is there but what I mean is do any browsers support using it for embedding HTML? I’ve mainly seen the object tag used ages ago back when people had Flash animations on websites. I remember Java Applets also but I think at the time people were using the applet tag for Java Applets. PDFs might also have been using the object tag however.
- deleted 2y ago[deleted]
- j45 2y agoThe answer was in one of the links already shared about browser support. Still, here's another. https://www.w3schools.com/tags/tag_object.asp https://www.w3schools.com/tags/tag_object.asp better yet: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_object_html https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_ob...
- codetrotter 2y ago> The answer was in one of the links already shared about browser support. Maybe it looks different on desktop than on mobile? On mobile I didn’t see any mention of embedding another html file in that link. > https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_object_html https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_ob... I normally dislike w3schools but yep that’s perfect :)