var ref = document.referrer; var output = ""; document.write(output);