/ Published in: JavaScript
Expand |
Embed | Plain Text
function getRef(){ var ref = ''; if (document.referrer.length > 0) { ref = document.referrer; } try { if (ref.length == 0 && opener.location.href.length > 0) { ref = opener.location.href; } } catch (e) { } return ref; }
You need to login to post a comment.
