tyrant1969
Programmer
Is there a way in Javascript to check if a variable has part of a certain value?
For example - I am prompting my users to enter a URL into a javascript prompt box. I want to make sure that the user has entered an HTTP:// at the start of the URL.
How can this be done?
For example - I am prompting my users to enter a URL into a javascript prompt box. I want to make sure that the user has entered an HTTP:// at the start of the URL.
How can this be done?