WMLScript getFragment() Function
The getFragment() function returns the fragment in the URL parameters.
Syntax
n = URL.getFragment(url)
Component | Description |
---|---|
n | The string returned from the function. |
url | A string. |
Example
var a = URL.getFragment("http://codew3c.com/wml#read"); var b = URL.getFragment("http://codew3c.com/wml");
Result
a = "read" b = ""