110
rated 0 times
[
116]
[
6]
/ answers: 1 / hits: 92417
/ 12 Years ago, mon, may 21, 2012, 12:00:00
How can I test a URL if it is a relative or absolute path in Javascript or jQuery? I want to handle accordingly depending if the passed in URL is a local or external path.
if (urlString starts with http:// or https://)
//do this
More From » jquery