I’m trying to change text on a page from an iframe on the page. When the user finishes uploading an image I want to change text saying loading… to finished uploading or something. Can this be done from an iFrame? I know when you use alert("Finished"); it alerts the user from the iframe, but I still have the loading text.
I’m trying to change text on a page from an iframe on the page.
Share
Try using window.parent from within the iframe. This will point to the parent window.
You could execute a function (named, say, hideLoadingText) within the context of the parent window by doing window.parent.hideLoadingText();