WMLScript getPort() Function
Complete WMLScript URL Library
The getPort() function returns the port number specified in the url parameter.
Syntax
Part |
Description |
n |
The string returned from the function |
url |
A string |
Example
var a = URL.getPort("http://w3schools.com:80");
var b = URL.getPort("http://w3schools.com");
|
Result
Complete WMLScript URL Library
Learn XML with <oXygen/> XML Editor - Free Trial!
|
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|