Use sessionStorage to store form status
// initial status - FALSE
sessionStorage.formStatus="false";
// use this code on button click event
sessionStorage.formStatus="true";
// check form status and render
if (sessionStorage.formStatus === 'false') {
// render form
}
if (sessionStorage.formStatus === 'true') {
// render thank you text
}
2
solved How to pass parameter in url? pl. explain with example?