Jump to content

retrieving html code from an iframe to a textbox


tecdesign

Recommended Posts

Does anyone know how to take the html code of an Iframe and read this code in a text box?

 

Some examples of the code are here:

 

  function transfer_email()
{
var coding = iView.document.body.innerHTML;



document.getElementById('email_area').innerHTML = coding;

}

 

 

	<iframe id="iView" style="width: 415px; height:205px">
</iframe>

 

 

    <p>
      <input type="submit" name="Submit" value="Transfer to Email" onClick="transfer_email()">
</p>
    <p>
      <textarea name="textarea" cols="70" rows="15" id="email_area"></textarea>
    </p>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.