[Javascript] Show/Hide advanced form and submitting

Troy III Ajnej trojani2000 at hotmail.com
Tue Feb 6 08:59:58 CST 2007


Hi Bill
> So, I now have "display: none" on the advanced form to prevent it from> initially displaying, but that makes the form not display if> javascript is disabled.> Bill Moseley> moseley at hank.org
OK, here you are. You need to change your routine.
I use this strategy to display a warning message 
for javascript disabled browsers.
 
1. Set the advanced form to get displayed by default.
2. Add this line of code in your script:
             document.getElementById("advanced").style.display="none"
you're done!
 
Cheers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          Troy III
                            progressive art enterprise 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_________________________________________________________________
Get the new Windows Live Messenger!
http://get.live.com/messenger/overview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070206/878fbfc1/attachment.htm>


More information about the Javascript mailing list