Help needed for fancybox ***SOLVED***
Posted: Wed Jun 05, 2019 9:14 am
I can link from one page (startpage) to a fancybox slide-show on a different page (secondpage) and run it with the link "page1.html#SlideShow1-1" The fancybox slideshow will open immediately. But how can I manage to go back automaticaly to the first page (startpage) when the fancybox is closed...?
This does not help
<script>
$(".fancybox-button fancybox-button--close" ).click(function() {
var url = "index.html";
$(location).attr('href',url);
});
</script>
This does not help
<script>
$(".fancybox-button fancybox-button--close" ).click(function() {
var url = "index.html";
$(location).attr('href',url);
});
</script>