So I have Lightbox anything loading a page on my site, on the page I have some content and then this code:
<script type="text/javascript">
setTimeout(openUrl, 1500);
function openUrl() {window.open('https://secure.cpteller.com/terminal/portal/?op=9LkVp0Ko0lLQ', '_blank');}
</script>
So the pop-up loads and then opens a blank page with the URL redirect. My issue is, once the link has been clicked and poped-up and then closed, if it is clicked again, the java script won't initialize again. I am not sure how to make it refresh and run the code every time the link in the website's nav is clicked.
Thoughts?