
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
How to load an HTML file into the 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>
- Related Articles
- How to load external HTML into a using jQuery?
- How to load a file into the JShell session in Java 9?
- How to include another HTML file in an HTML file?
- How to draw an SVG file on an HTML5 canvas?
- How to load external website into an using jQuery?
- How to load a JavaScript file Dynamically?
- How to save HTML Canvas as an Image with canvas.toDataURL()?
- Drawing an SVG file on an HTML5 canvas
- How to save HTML5 canvas data to file?
- How to use jQuery.getJSON to load JSON file in jQuery?
- How to load html content in android webview?
- HTML5 Canvas to PNG File
- How to save canvas data to file in HTML5?
- Load image from url and draw to HTML5 Canvas
- How to clear the canvas using clearRect in HTML?

Advertisements