How do I set an embedded website link to open into a new tab?
Below are the instructions on how you will force the external or internal links to open in a new tab.
Yes, it is impossible to do that. Sometimes, we create a page that has a lot of links embedded on it. It is annoying that when you click the link it leaves the current page. Well, there is a solution on that, here's how;
<script>
jQuery(document).ready(function() {
jQuery(".wiki-content a").attr("target", "_blank");
});
</script>
Regards,
Jeffry
Below are the instructions on how you will force the external or internal links to open in a new tab.
Yes, it is impossible to do that. Sometimes, we create a page that has a lot of links embedded on it. It is annoying that when you click the link it leaves the current page. Well, there is a solution on that, here's how;
<script>
jQuery(document).ready(function() {
jQuery(".wiki-content a").attr("target", "_blank");
});
</script>
Regards,
Jeffry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.