I want to check whether a string returned by document.referrer contains desired string or not. For example: I have used document.referrer as below and used split.
var ref1= document.referrer.split('/');
But my problem is to check whether the returned string from document.referrer contains a particular string or not. eg:
ref1 contains home/index.html or not.
Anyone please help me.