|
Newsletters
|
|
|
|
|
WMLScript Reference
WMLScript Reference
WMLScript > URL > isValid()
isValid() - The isValid Function
Usage: isValid(url)
Description: Returns true if the given url has the right URL syntax, otherwise returns false. Both absolute and relative URLs are supported. Relative URLs are not resolved into absolute URLs.
Example:var a = URL.isValid("http://www.wirelessdevnet.com/script#func()");
// a = true
var b = URL.isValid("../common#test()");
// b = true
var c = URL.isValid("experimental?://www.host.com/cont>");
// c = false
Bookmark this page
|
|