How to get a element by Id within a HTML iFrame

I want handle a onclick event of a button inside a HTML iframe. The code within the HTML iFrame contains this button.

<button id="ppSubmit" type="button" class="btn btn-primary mb-2 submit">Submit</button>

But when I try to add the following Velo code on the page containing this iframe I get the following error:

Is interaction between Velo javascript and html elements inside a iframe possible? If so, an example would be great.

Take a look onto this…

https://www.wix.com/velo/reference/$w/htmlcomponent

I am also in same problem…

I am also having same kind of problem. any solutions?.

Have a look at postMessage