how to copy form data between different pages
Answer / Charu Mitra Singh
You can use the HTML5 SessionStorage API to store and retrieve form data between different pages.nHere's an example:nStoring data:n```javascriptnsessionStorage.setItem('formData', JSON.stringify(document.forms[0].elements));n```nRetrieving data:n```javascriptndocument.forms[0].reset();nvar data = JSON.parse(sessionStorage.getItem('formData'));nfor (let i = 0; i < data.length; i++) {n document.forms[0].elements[data[i].name].value = data[i].value;n}n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Reading which Non-Character Key was pressed
code to sorting an array of objects
code to Hide and Show form controls
code to positioning of window in certain dimensions
determine which Element received an Event
write a code to generate pseudorandom numbes
how to delay a function call ?
how to Scroll a DIV content
validation code / function to allow only NUmbers in a text box
code to detect availability of cookies
code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc
code to create a new window