Return to Snippet

Revision: 49403
at August 26, 2011 05:02 by amandalaine


Updated Code
var url = (window).location.toString()

url.indexOf("nomobile")!=-1  //"nomobile" is in the string
url.indexOf("nomobile")==-1  //"nomobile" is NOT in the string

Revision: 49402
at July 21, 2011 07:10 by amandalaine


Initial Code
url.indexOf("nomobile")!=-1  //"nomobile" is in the string
url.indexOf("nomobile")==-1  //"nomobile" is NOT in the string

Initial URL


Initial Description


Initial Title
Search in String - return yes or no

Initial Tags
search

Initial Language
JavaScript