Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> </head> <body> <!-- iframe from the same site --> <iframe id="iframe" src="/"></iframe> <script> iframe.onload = function() { // just do anything iframe.contentDocument.body.prepend("Welcome to W3Docs"); }; </script> </body> </html>