Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get params js

// www.example.com/users?token=12345

let params = (new URL(document.location)).searchParams;
let token = params.get("token");
// 12345
 
PREVIOUS NEXT
Tagged: #params #js
ADD COMMENT
Topic
Name
6+9 =