, How to click the gotop button outside iframe to make the content in iframe return to the top. I tried a few of them, but have you ever done it. The premise is that the iframe page cannot be modified.
, How to click go top button outside iframe to makeContent in iframeReturn to the top.
I tried a few of them, but have you ever done it.
The premise is that the iframe page cannot be modified.
Reply content:
, How to click go top button outside iframe to makeContent in iframeReturn to the top.
I tried a few of them, but have you ever done it.
The premise is that the iframe page cannot be modified.
If the domain name is not cross-origin, it can be as follows:
Var iframeElement; // select iframeiframeElement. contentWindow. scrollTo (0, 0 );
I have no solution in the case of cross-origin
DEMO
Register the slide to the top method in the iframe document. when the click event is triggered on the external page, find the iframe and then call this method.
Are you doing this on a local page? That cannot be done. set up a server and try again.