Created
October 27, 2016 15:14
-
-
Save BorjaL/6d7e0474a3e58317b13f909d3e144df8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadUrl(linkElement){ | |
var targetUrl = linkElement.attr('href'), | |
targetTitle = linkElement.attr('title'); | |
window.history.pushState({url: "" + targetUrl + ""}, targetTitle, targetUrl); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment