I am trying to check valid domain name in javascript, I have given the code below which I have tried. For a valid domain, it\'s showing a correct message if I give an invalid do