JavaScript to verify URL field starts with "http"

admin

Administrator
Staff member
I'm looking for a JavaScript to verify that the optional URL field on my form ( <!-- m --><a class="postlink" href="http://www.usedflutes.com/addpage.html">http://www.usedflutes.com/addpage.html</a><!-- m --> )starts with "http" (people sometimes enter "www" or use the field for text, both of which don't work with the database). Anybody have a script that will do this? Many thanks in advance.

-Bob
 
Back
Top