jquery - Passing previous URL into Javascript function -
jquery - Passing previous URL into Javascript function -
what wish have bookmark link that, when clicked, performs action on current (or in effect, previous) url. have seen achieved youtube converters etc.
i have tried accessing previous url using document.referrer not work
$(document).ready(function() { if(document.referrer.indexof(window.location.hostname) != -1){ $referurl = document.referrer; console.log($referurl); } }); javascript jquery browser-history
Comments
Post a Comment