manman89

JAVASCRIPT - isURL Simple

Nov 14th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (typeof(isUrl) != "function"){
  2.     isUrl = function isUrl(s){
  3.         if(s.match('^(ftp|http|https)://')){
  4.             return true;
  5.         }else{
  6.             return false;
  7.         }
  8.     };
  9. }
Advertisement
Add Comment
Please, Sign In to add comment