-
-
Save gavinblair/3834198 to your computer and use it in GitHub Desktop.
Get the referrer with jQuery: A useless bookmarklet
This file contains hidden or 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
javascript:(function(){ jQuery.fn.referrer = function() { return jQuery(document).prop("referrer").toString(); }; alert(jQuery().referrer()); })(); |
fixed! I made your jquery plugin into a bookmarklet. Warning (feature?) : only works on sites that have jQuery.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey now... that wasn't the task http://stackoverflow.com/questions/3148177/the-right-way-to-get-http-referrer-from-jquery