Рет қаралды 13,480
#passvaluetoanotherpage #javascript
In this video session we will learn how to transfer input fields data from one html page to another html page using javascript with the help of window.location.search and URLSearchParams class.
So, Uncover the Secret to How To Pass Value From One HTML Page To Another
We need to create an html page to get the data from the user, We will get the date in input fields and this data by form and also we need a result page by the name of result.html page.
form tag and table element
some input fields with name attributes
on submission of that form we need fields data to result page, when we click submit button data is passed to result page with the help of get method
now we need to fetch the data with help of window.location.search and using URLSearchParams class we get the individual data and then we can display this data to our result page.
#fetchdatainhtml #html
Thanks for Watching,
Follow us on
Subscribe to our Channel :
Like Facebook Page : / credibleacedy
Follow us on Instagram : / credible_academu
LinkedIn : / mohsin-ahmad
Review - / credibleacademy
FB - / credibleacedemy