Consider two pages, first.html and second.html. From first.html, i am submitting a form to second.html. I must access form elements of first.html in second.html through javascript. How to do this? Please help
If the second page is being generated by some server side code and the first page is POSTed to it, then you can have the code add the first page's fields as HIDDEN fields on the form.
If you are passing from one HTML page to another, suggest that you try using the GET method to pass the data - i.e. via the browsers Query String.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.