So I want to scan 2 Datum, these are texts, then I will rate it if it has relevancy.
Example:
Data: individual facts
Data: statistics, items of information individual facts
This is my JS code that will scan the whole webpage:
var listitem, thislist;
var itemname = new Array();
listitem = getElementsByClass('Forwards');
for(var i = 0; i < listitem.length; i++) {
if (listitem[i].innerHTML.match(/Data:/)) itemname.push(listitem[i].innerHTML);
}
So the itemname array contains the texts. The first array contains:
Data: individual facts
The second array contains:
Data: statistics, items of information individual facts
As you can see the second array contains more information:
Data: statistics, items of information
But they are relevant right?
So I want to to return TRUE
How would I code this?