Load HTML File into Canvas



For this, you can use the SVG <foreignObject> elements. Let us see an example:

<svg xmlns = "http://www.w3.org/2000/svg">
<foreignObject x = "0" y = "0" height = "500" width = "500">
   <body xmlns = "http://www.w3.org/1999/xhtml">
      <p>DEMO</p>
      <input type = "date"/>
   </body>
</foreignObject>
</svg>
Updated on: 2020-01-29T08:12:55+05:30

703 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements