Answers for "url get variables"

5

get actual url in variable

var currentLocation = window.location;
Posted by: Guest on March-10-2020
-1

js get url variables

const postID = (new URLSearchParams(window.location.search)).get('post');
Posted by: Guest on February-11-2021
0

set get variable in url

examplepage.php?var1=value&var2=value
Posted by: Guest on October-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language