passing form data to another HTML page using only javascript and html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

passing form data to another HTML page using only javascript and html

if a registration form has a lot of fields like name field, password field like ....so on, we need to print all the values in another HTML page using simple validation in javascript

11th Jul 2019, 4:43 AM
Harish Ragav
Harish Ragav - avatar
1 Answer
0
you can send the form using get method. then on the other page use URLSearchParams(window.location.search) to get the values back ( https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams )
11th Jul 2019, 4:54 AM
Taste
Taste - avatar