Live Chat Icon For mobile
Live Chat Icon

Is it possible to identify the source webpage where I came from?

Platform: ASP.NET| Category: Client Side Scripting

You can identify the source webpage using the document.referrer command. The document object is the page currently loaded in the browser window – presumably your Web page. The referrer property is the page the visitor was at immediately prior to visiting the current page. You can code it as,


functionIdentifySourceWebPage()
{
	if(document.referrer != ’’) 
		document.write(’You came from ’ + document.referrer); 
}

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.