A textfield has the value "http://www.google.com/".
I want to have a javascript that detects if the value starts with "http://", because then it will do "alert('The value starts with http://')". Or if the textfield's value is something else, it should do "alert('Nothing special...')"
How to do this?



Reply With Quote

Bookmarks