what happens when you submit a form that has the action attribute set and in the same time there is a javascript code that handles the submitting?
Any way to maintain both codes (action attribute and javascript code) for the case the user doesn’t have javascript installed?
Regards
Javi
There is not much control you have when javascript is disabled. You can however, use
<noscript></noscript>tags to imply that javascript should be enabled for the functionality of the page. Note that you can also change theactionattribute with javascript like this:But of course that won’t work if javascript is disabled.
You should develop your page keeping in mind graceful degradation which means when certain feature isn’t there, your page should still behave normally at least. It is upto you how you code your page. I would prefer a submit button in such case to be there always so that a form is submitted whether or not javascript is enabled.