views:

50

answers:

2

Suppose I have an url like : http://localhost:1122/MyProject/MyPage.aspx?from=home&id=454. I can retrieve the 'form' value in code behind like Request["from"].How can I do the same using Javascript?Can I do this using Jquery also?If yes how can I do this?

+1  A: 

Yes. You don't need jQuery, just pure JavaScript. See this answer.

Nate Pinchot
A: 

Just doing a quick google search on get request parameters in javascript I found this which can help you

Dean