I have an ASP.NET MVC3 project that uses a tab strip on certain pages. The tab stop is constructed in JavaScript. When the user performs action I would like to be able to redirect them to the correct page with the correct tab open. To achieve this I either need to pass a variable in the URL and get a handle on it using JavaScript or pass a variable back using the ViewBag or TempData and again, get a handle on it using JavaScript.
So my question is, how can I access these variables using JavaScript?