html - What's the point of naming forms? -
what's point of name="" html attribute in <form> tags? here says that:
the name attribute specifies name of form. name attribute used reference elements in javascript.
why can't use id or class attribute reference elements javascript?
what name tag intended for? has real importance today?
the <form> name attribite pre-dates using ids in javascript, therefore there backwards compatibility. forms collection document.forms can handy when parsing page.
Comments
Post a Comment