[Solved] How to check if the web browser contains a specific string?


This should do the trick for you…

if($('html:contains("Hello World")').length > 0){
   alert('Hello World! I exist!');
}else{
   alert('Goodbye cruel world!')
}

2

solved How to check if the web browser contains a specific string?