How to load an HTML file into the canvas?

JavascriptWeb DevelopmentFront End Scripts

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>
raja
Published on 11-Apr-2018 07:47:26
Advertisements