How to Get the Query String from the URL and Set the Form field value?

From the Above URL, I need to get the value for the parameter: AccountName. Here is how it got achieved using javascript: Another Case: Today, I am running in a situation like: I have to get the value from URL and set that value to SharePoint form’s field. My URL is: http://abc.com/sites/xyz/Lists/Metrics/Edit.aspx?List=3f7f4d96%2D00da%2D46f9%2Dae38%2D5053a9e8b321&ID=319&Source=http%3A%2F%2Fabc.com%2Fsites%2Fxyz%2FOwnerEntry%2Easpx%3FProjectID%3D71…

Read more