javascript - How to pass parameter in url? pl. explain with example? -


how pass parameter in url (suppose have form in page , on clicking submit hidden content"thanks "is shown want if user refreshes page on should still shown rather going on form page ?

use sessionstorage store form status

// initial status - false  sessionstorage.formstatus = 'false';    // use code on button click event  sessionstorage.formstatus = 'true';    // check form status , render  if (sessionstorage.formstatus === 'false') {      // render form  }    if (sessionstorage.formstatus === 'true') {      // render thank text  }


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -