aspose file tools*
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
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: 61437
    
  67

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: 61437
    
  67

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

Joined: Mar 22, 2005
Posts: 42292
    
  64
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Website validation using javascript