I have this piece of code, which checks the address bar for the string ?user=
:
if(window.location.href.indexOf("?user=") > -1) {
start();
} else {
alert("No user.");
}
But actually I would like to check, if the ?user=
has something after it, for example a name. I would be glad if you could help me out.