Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

build an javascript URL and its search parameters

const myUrlWithParams = new URL("https://www.softhunt.net/");

myUrlWithParams.searchParams.append("city", "Karachi");
myUrlWithParams.searchParams.append("price", "$200k");

console.log(myUrlWithParams.href);
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #build #javascript #URL #search #parameters
ADD COMMENT
Topic
Name
4+6 =