Landing Pages as Iframes


We are trying to embed hubspot landing pages as iframes to leverage smart content capabilities in our app.

One iframe ( ) on a login page:

And another iframe ( one inside our web app:

The problem is:

When a user logs in we are trying to reach inside iframe using javascript and check for the publish date inside the iframe:

We get this error in safari
Also this break functionality in IE

Please can suggest a solution, Thank you.