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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -