WMLScript getPort() function
Ang getPort() function ay ibabalik ng getPort() function ang port number na tinukoy sa URL.
Syntax
n = URL.getPort(url)
Component | Description |
---|---|
n | String na ibabalik ng function. |
url | Isang string. |
Example
var a = URL.getPort("http://codew3c.com:80"); var b = URL.getPort("http://codew3c.com");
Result
a = "80" b = ""