html - Pass variable through new <script> element -


this function

function setstorage() {      localsorage.setitem("value", radio); } 

can executed , allow other functions executed if in separate <script> element. now, variable, radio, needs written storage browser said variable if not defined, how variable without calling function unexpectedly?

if makes sense...


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -