Menu
I have included a javascript in my index.html which will display a section of code based on a variable being set to “yes”. Its default setting is “no”.
[code] if (showcode_1 == “yes”) {
document.write(‘<br /><br />’);
etc etc…
}
However, there’s a <form> button which I can press on index.html which onClick sets showcode=”yes”.
Obviously at that point the document has been formed etc so setting showcode_1=”yes” at that point won’t do anything.
Is there anyway to let that code display once showcode_1 has been set to “yes” dynamically as soon as I press that button?