Skip to content

Instantly share code, notes, and snippets.

@devendrasv
Created October 19, 2013 10:46
Show Gist options
  • Save devendrasv/7054359 to your computer and use it in GitHub Desktop.
Save devendrasv/7054359 to your computer and use it in GitHub Desktop.
jQuery to open link in quick launch in new window
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function ($) {
var spjourney = $("a:contains('sharepoint-journey')");
if (spjourney.length > 0) {
$(spjourney).click(function(){
var spjourney_href = $(this).attr("href");
window.open(spjourney_href, "_blank");
return false;
});
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment