iframe srcdoc javascript code example Example: iframe srcdoc <iframe srcdoc="<p>Hello world!</p>"></iframe>