jQuery in Action, 2nd edition*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Website validation using javascript" Watch "Website validation using javascript" New topic

Website validation using javascript

Sapan Shah

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

Joined: Jan 10, 2002
Posts: 60766

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

Joined: Jan 10, 2002
Posts: 60766

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

Joined: Mar 22, 2005
Posts: 41078
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

Joined: Sep 29, 2008
Posts: 12617

Are you basically asking how JavaScript regular expressions work?
Consider Paul's rocket mass heater.
subject: Website validation using javascript
Similar Threads
jsf -javascript
both javascript and serverside validations running
JavaScript disabled
how to show validation error messages on the jsp login fields from servlet
Need HTML And Javascript Code