This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Website validation using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Website validation using javascript" Watch "Website validation using javascript" New topic
Author

Website validation using javascript

Sapan Shah
Greenhorn

Joined: Jan 01, 2010
Posts: 25
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: 61084
    
  66

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61084
    
  66

Where is your code? What problems are you having with it?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
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.


Ping & DNS - my free Android networking tools app
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are you basically asking how JavaScript regular expressions work?
 
 
subject: Website validation using javascript