Author
Website validation using javascript
Sapan Shah
Greenhorn
Joined: Jan 01, 2010
Posts: 24
I want to make a validation using javascript that user should enter two dot(.) and before first dot(.) www should be written.
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56163
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP . For more information, please read this .
This post has been moved to a more appropriate forum.
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About Bear ]
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56163
Where is your code? What problems are you having with it?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35224
posted Jan 08, 2010 09:43:23
0
It sounds like you wish to ensure that something like "www.xyz.com" is entered - be aware that web site addresses don't need to start with www, and can have one, two or more dots.
Android apps – ImageJ plugins – Java web charts
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
posted Jan 08, 2010 09:55:38
0
Are you basically asking how JavaScript regular expressions work?
subject: Website validation using javascript