Sample code for 30+ languages & platforms
JavaScript

Example: Http.GetDomain method

Demonstrates the GetDomain 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 http = new CkHttp();

var domain = http.GetDomain("https://chilkatsoft.com/refdoc/csharp.asp");
console.log(domain);

// Output: chilkatsoft.com