Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Constructing a URL from component parts and getting the constructed string

const myURL = new URL('https://example.org');
myURL.pathname = '/a/b/c';
myURL.search = '?d=e';
myURL.hash = '#fgh';
Source by nodejs.org #
 
PREVIOUS NEXT
Tagged: #Constructing #URL #component #parts #constructed #string
ADD COMMENT
Topic
Name
3+8 =