javascript - Is there a standard resource for the "default action" of HTML elements? -


I'm wondering if the default action of various HTML elements is the defined standard. I have seen and when they are very precise that what features can be used with elements (and what some behaviors such as what actually involves with presenting) is nothing about the behavior of the elements Also checked, and there is nothing found.

Especially I am looking for the default behavior of a form submit button; I have seen at different places that its default work is to submit the form and optionally to submit its default action form, rather to get the focus accordingly, there is no consensus on whether the onclick = "Return false"; Form will be submitted for the submit button or not.

(Edit for clarity - I am not trying to submit the form of the onclick or anything on the form-level verification, if I was, Instead of using the form onsubmit , you are interested in clicking on the button and can not submit the form in case of this problem. This button is called onclick Need to set up, inspect this form of onsubmit But if I can just do return then it is very good. Even if not, it would be important that onsubmit and onclick How will the handlers be removed (i.e. send the button before submitting its click handler?) Which I have not seen anywhere else.)

However this is only a The test code will be, I trust instead of the specs / documents Behavior rather than a trivial test results that should definitely miss any subtlety, he must exist. In particular, I had run a quick test last week that seems to show it stop the form of not form, but today it turns out that it does . I had no luck finding any kind of official resources, as you interact with your elements (for example, what is the default task, whether before or after an onclick handler for a submit button

Form submissions dispatch as a browser, etc.)

There is some advice to look at this matter that you are welcome.

There are related documents and.

Maybe you do not need all the information, but if you feel low, please.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -