Answers for "how to pass # in url query string in js"

2

javascript reading query parameter

// example url: https://mydomain.com/?fname=johnny&lname=depp
const urlParams = new URLSearchParams(window.location.search);
const firstName = urlParams.get('fname'); // johnny
Posted by: Guest on September-18-2020

Code answers related to "how to pass # in url query string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language