Embed script to HTML body

Hi there, I am iFraming some pages on my wix website on a third party site.
Since the page was not bootstrapping properly, the developer advised as follows,

We’ve found a way to make iframed pages resize automatically to a 100% height, but we need your help. If you could add this script tag at the end of the body tag on each page that we’re going to iframe on the Hauslr website, it would be greatly appreciated!

I’ve tried techniques shown on,
https://support.wix.
com/en/article/corvid-working-with-the-html-element#using-a-javascript-library

but nothing seems to work.

I am not an experienced developer if you can dumb it down for me it would be greatly appreciated.

Thank you,

1 Like

Corvid does not support the tag. Corvid understands all of Javascript, except for anything that accesses the DOM. This keeps the user from inadvertently “breaking” something. Accessing document elements such as div, span, button, etc is off-limits. The way to access elements on the page is only through $w.

One small exception is the $w.HtmlComponent (which is based on an iFrame). This element was designed to contain vanilla HTML and it works just fine. You just can’t try to trick it by using parent, window, top, etc. Same goes with the Javascript evaluate() function. It is sandboxed and does not allow access to the DOM.

See Covid: Working with the Html Element