Answer the question
In order to leave comments, you need to log in
How to open a link in the same window?
This code opens the link in a new window
<script>$('.hidden-link').click(function(){window.open($(this).data('link'));return false;});</script>
Answer the question
In order to leave comments, you need to log in
<script>$('.hidden-link').click(function(){window.location.href=$(this).data('link');return false;});</script>
instead of any bullshit, do this:
and if it’s completely unbearable, then add:$('.hidden-link').click();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question