0

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?

halfer
  • 19,824
  • 17
  • 99
  • 186
ANP
  • 15,287
  • 22
  • 58
  • 79

1 Answers1

1

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

Community
  • 1
  • 1
Nate Pinchot
  • 3,288
  • 24
  • 35