If I have a url https://stackoverflow.com/?variable=12345 how can I check if there is a GET parameter in the URL and what it is equals to in JS or jQuery?
For example in PHP:
if(isset($_GET['variable']))
$variable = $_GET['variable'];
Thanks.