0

I'm using javascript dom, and I've made my edits to a page, I don't have access to edit, only by js file.

And I created a subsite, and made a iframe by Dom, the site is an entry for a specific text

I want to link the communication between iframe and the page, which is entered in input iFrame is inserted into the page by Dom

This is the that I created: main page example.com iframe page.example.com

I want to bot, the element is written in iFrame and inserted into the page.

This is a input code on the page and an ID field_93873.

<input type="text" id="field_93873" placeholder="HERE URL VIDEO AFTER UPLOAD" value="">

This is what is used in iFrame (i have access):

<input id="upURL" value="https://example.com/LinkVideo.mp4">

This is the code I created DOM to be implanted into the page:

var x1 = document.createElement("IFRAME");
var html_content = '<iframe id="frame1" class="frame01" src="/uploadvVideoURL/index.php"></iframe>';
document.getElementById("Upload1ONE").innerHTML = html_content;

I just want someone who understands, and makes the code to print the input iframe to be displayed on the page.

Please :(

0x4r
  • 1
  • 1

0 Answers0