When i post data from one page to another,how do i get that into dom.
say URL is http://www.test.com/?xxx=1234&a=122
How to get xxx and a value inside DOM?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The parameters in the URL are available as the search property of the window.location object. It’s not too hard to convert it to an object for easy access: