Possible Duplicate:
Get query string values in JavaScript
In Java script i have a variable that holds the value &name=John&age=12&roll=2 for ex:
var data = "&name=John&age=12&roll=2"
How can I separately fetch these three values? ie value of name, age and roll