Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Getting The Search Params With A For Of Loop

const url = new URL('https://example.com/?firstkey=firstvalue&secondkey=secondvalue');
 

for( const [key, value]  of Array.from(url.searchParams.entries()))
{
console.log(key)
console.log(value);

}
 
PREVIOUS NEXT
Tagged: #Getting #The #Search #Params #With #A #For #Of #Loop
ADD COMMENT
Topic
Name
1+3 =