Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(window.location.href.indexOf("name=franky" && "gender=male") > -1)
- if(window.location.href.indexOf("name=franky") > -1 &&
- window.location.href.indexOf("gender=male") > -1)
- if(window.location.href.indexOf("name=franky") > -1 &&
- window.location.href.indexOf("gender=male") > -1)
- if(window.location.href.indexOf("gender=male") > -1)
- function CheckIfAllQueryStringsExist(url, qsCollection) {
- for (var i = 0; i < qsCollection.length; i++) {
- if (url.indexOf(qsCollection[i]) == -1) {
- return false;
- }
- }
- return true;
- }
- var myUrl = window.location.href;
- var queryStrings = ["name=franky", "gender=male"];
- var allPresent = CheckIfAllQueryStringsExist(myUrl, queryStrings);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement