Validate site/domain via javascript
- by Chez
I have a standard html form where the user can specify a website/domain:
favourite website: [ ]
I expect the user to type things like:
[www.google.com]
[www.yahoo.com]
[www.example.co.jp]
I want to validate the domain/site via javascript so if a user had typed something wrong:
[www...google.com] [www.-example.com]
I tell them straight away.
Can anybody post this javascript ?
Alternatively can anybody point me to a site where I can look at their javascript ?
Many Thanks