I want to navigate through pages and state a variable 's' between them with a value, I usually do it "name.php?s=p" for example, but I thought there is a way to:
www.myweb.com/?s=p
For example.
I need to get the value inside the ?s=
and read whats in it.
I tried this but it doesn't seem to work:
console.log($(location).attr('s'));
Is it possible with jquery?