
- 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
Is their any alternative to HTML5 iframe srcdoc?
The srcdoc attribute specifies the HTML content of the page to show in the iframe. The HTML <iframe> tag is used to create an inline frame.
Alternative of the srcdoc attribute will be:
var doc = document.querySelector('#demo').contentWindow.document; var content = '<html></html>'; doc.open('text/html', 'replace'); doc.write(content); doc.close();
- Related Articles
- Alternatives to HTML5 iframe srcdoc?
- Cross domain HTML5 iframe issue
- HTML5 Cross Browser iframe post message - child to parent?
- Which is the JavaScript RegExp to find any alternative text?
- Is there any alternative for CONCAT() in MySQL?
- Is there any alternative solution for static constructor in java?
- Is there any alternative for OpenCV imshow() method in Java?
- Is their a cross-origin attribute in HTML5?
- How to load a hyperlink from one iframe to another iframe?
- Implement MySQL query using multiple OR statements. Any optimal alternative?
- Is there any way to embed a PDF file into an HTML5 page?
- Any way of using frames in HTML5?
- How to apply CSS to iframe?
- Is an empty iframe src valid in JavaScript?
- HTML DOM iFrame Object

Advertisements