I put this in the code area of the Wix page:
import wixWindow from 'wix-window';
then tried making this call from a non-Wix page inside an iframe:
Got this error: "Uncaught DOMException: Blocked a frame with origin "https://mydomain.com" from accessing a cross-origin frame."
So, would I be able to do it if it were a Wix page inside the iframe?