Here is the link in question.
I have created a small page with the isolated problem on it.
http://frontendaudio.com/v/vspfiles/...pt_tester.html
the javascript file that is referenced basically only does one thing.
It searches for "> >" and then alerts us whether or not it's on the page.
--- It pulls the innerHTML of the entire document --- the searches it - and indexes the string.
I echoed the string out to a text area so you could see the string "> >" is clearly there after the word microphones in the link tag... </a> > < etc..
Any thoughts on how I can detect this string somehow?
Thanks.
Here is the code inside the javascript file.
Code:
var myStringDiscuss = 'microphones</a> >';
myStringDiscuss = myStringDiscuss.replace(/~/g,""); // unmunge
function discussDetection(){
var str = document.getElementsByTagName('html')[0].innerHTML;
str = str.toLowerCase(); // to make case insensitive
var category_string = str.indexOf(myStringDiscuss);
if (category_string == -1) {
alert("not on this page");
}
else {
alert("IS on the page");
}
}
window.onload= discussDetection;