get parameters from url
var url_string = "http://www.example.com/t.html?a=1&b=3&c=m2-m3-m4-m5"; //window.location.href
var url = new URL(url_string);
var c = url.searchParams.get("c");
console.log(c);
get parameters from url
var url_string = "http://www.example.com/t.html?a=1&b=3&c=m2-m3-m4-m5"; //window.location.href
var url = new URL(url_string);
var c = url.searchParams.get("c");
console.log(c);
javascript create url with parameters
// URL w/ PARAMETERS
let origin = "https://www.google.com"
let pathname = "/search"
let query = "?q=javascript%20create%20url%20with%20parameters"
let url = origin + pathname + query
console.log(url);
get parameters from url
www.test.com/t.html?a=1&b=3&c=m2-m3-m4-m5
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us