I have a redirect:
<script>setTimeout(function() { window.location = '/'; }, 2000);</script>
That works perfectly, but I'd like to "trigger the event":
$('#languagepopup').modal('show')
at the same time.
In html I would use a button with something like:
onclick="$('#languagepopup').modal('show')"
How can I do that with the redirect?
Any help highly appreciated!