I have a web page page.html with this fancybox4 link
<a href="link.html" data-fancybox data-type="iframe" data-width="80%" data-height="25%" >
I would close automatically fancybox iframe link.html after 3 seconds.
I tried variuos solutions found in stackexchange but nothing worked (all solutions are referred to fancybox2 or older version).
From the documentation - https://fancyapps.com/docs/ui/fancybox/api - you can close Fancybox using Fancybox.close();
- so, all you have to do is to figure out how to execute it after some timeout
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.