Example URL: https://www.facebook.com?username=123&password=*** I am trying to split the 'username' and 'password' parameters from the url. Here's what I have for the username
var userstring = url.Split('?username=')[1] && url.Split('&password=')[0];
I'm pretty sure this is wrong syntax as some of this is jQuery syntax. Help Please.