Sample code for 30+ languages & platforms
JavaScript

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat v11.4.0 or greater.
JavaScript
var success = false;

var http = new CkHttp();
var url = "https://example.com/folder/page?lang=en&sort=asc#section2";
console.log(http.GetUrlPath(url));

// Output:

// /folder/page