I am trying to pull the HTML from an iFrame named viewLook, and have it display the HTML in the same iFrame. This is the code I've coded, but doesn't work.
Code:
var obj = document.getElementById("viewLook").contentWindow.outerHTML;
document.getElementById("viewLook").contentWindow.innerHTML = obj;
I was hoping someone could point out what I was doing wrong. Thank you.