In this code you will see how to open a quick launch link in a new tab in SharePoint 2013 Online using Jquery.
Code Snippet:
- <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function ($) {
- var quicklink = $("a:contains('sharepoint-journey')");
- if (quicklink.length > 0) {
- $(quicklink).click(function(){
- var quicklink_href = $(this).attr("href");
- window.open(quicklink_href, "_blank");
- return false;
- });
- }
- });
- </script>