Skip to content

Instantly share code, notes, and snippets.

@yovasx2
Last active July 12, 2023 22:03
Show Gist options
  • Save yovasx2/89b1e99cb2996717a5efc9ec905756ae to your computer and use it in GitHub Desktop.
Save yovasx2/89b1e99cb2996717a5efc9ec905756ae to your computer and use it in GitHub Desktop.
// Create the iframe element
var iframe = document.createElement("iframe");
// Set the source URL for the iframe
iframe.src = "https://www.example.com";
// Set any additional attributes or styles for the iframe
iframe.setAttribute("width", "100%");
iframe.setAttribute("height", "400px");
iframe.setAttribute("frameborder", "0");
// Append the iframe to the body of the hi5.com website
document.body.appendChild(iframe);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment