skip to Main Content

Trying to get javascript variables on one php page to show in another using WYSIWYG Web Builder 19

I have a javascript in the head of the index page and this function stores the variables from the functions in localstorage: <script type="text/javascript"> function storeGlobals() { localstorage.setItem("name", name.value) localstorage.setItem("current_age", current_age.value) localstorage.setItem("retirement_age", retirement_age.value) localstorage.setItem("base_salary", base_salary.value) localstorage.setItem("emailid", emailid.value) localstorage.setItem("FEGLI_BASIC_LIFETIME_COST", "$"+total_FEGLI_BASIC_LIFETIME_COST) localstorage.setItem("fegli_opa_cost",…

VIEW QUESTION
Back To Top
Search