I am currently working on a localhost webpage (parent) that includes an iframe displaying content from another url (child; part of a different webapp also on localhost).
My goal is to use JavaScript on the parent-page to inspect the contents of the iframe, specifically looking for a list of items. If this list is empty, I want to hide the entire iframe.
The issue arises when attempting to access the element iframe.contentDocument.body. In Firefox, I receive the error message: Permission denied to access property 'body'
In Internet Explorer, the error simply states: Error: 'body' is null or not an object.
If anyone has any suggestions on how to work around this problem, it would be greatly appreciated.
Thank you,