w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

WMLScript getScheme() Function


WMLScript URL Library Complete WMLScript URL Library

The getScheme() function returns the scheme in the specified URL.

Syntax

n = URL.getScheme(url)

Part Description
n The string returned from the function
url A string

Example

var a = URL.getScheme("http://www.w3schools.com");
var b = URL.getScheme("www.w3schools.com");
var c = URL.getScheme("ftp://www.w3schools.com");

Result

a = "http"
b = ""
c = "ftp"


WMLScript URL Library Complete WMLScript URL Library

DreamTemplate


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Windows Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display