Domain name validation script

Discussion in 'JavaScript' started by subha rr, Mar 6, 2009.

  1. #1
    Hi.....

    This array is used to check the domain extensions for validate a domain name.......
    How to write this code...
    Pls help..

    Regards
    subha
     
    subha rr, Mar 6, 2009 IP
  2. DGK

    DGK Peon

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    function aa(valid) {
    var arr = new Array('.com','.net','.....................................);
    return valid in arr ;
    }

    and then check the result...
    good luck
     
    DGK, Mar 7, 2009 IP
  3. siothach

    siothach Active Member

    Messages:
    656
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    siothach, Mar 9, 2009 IP