/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var url = (window).location.toString() url.indexOf("nomobile")!=-1 //"nomobile" is in the string url.indexOf("nomobile")==-1 //"nomobile" is NOT in the string