Envato Forums
Check if string is a URL?
Envato Authors
Code Authors
madbunny
March 10, 2009, 4:38pm
13
var isURL: Boolean = myString.substr(0, 7) == "http://" && myString.length > 7;
Best of both worlds
show post in topic
Related topics
Topic
Replies
Views
Activity
[JS] Check if URL is an internal site link
Theme Authors
5
2843
May 21, 2012
hi when i open a site's href links
Theme Authors
0
188
February 24, 2020
need script like http://www.aboutus.com/
Looking For
0
940
September 26, 2015
Malformed URL
Author Hangout
affiliates
4
605
June 5, 2020
Javascript Regex Replace string, special character need help
Web and Code
23
2002
June 20, 2011