<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'>
var ref1= "http://yoursite.com/home/index.html";
var search = "home/index.html";
if (ref1.indexOf(search) > -1)
document.writeln('Found');
else
document.writeln('Not Found !');
</script>
</head>
<body>
</body>
</html>