javascript - How do I generate a nameless url parameter from a form submit -
i want use form submit generate url looks like: submit.html?a&b=c
according w3c spec here: https://www.w3.org/tr/html5/forms.html#attr-fe-name-isindex should able use name="isindex" in order generate nameless attributes. when trying setup this:
<input type="text" name="isindex" value="a" /> <input type="text" name="b" value="c" />
it doesn't seem work in chrome (works fine in safari , firefox though)
when looking @ mdn there's mentioning html element isindex being deprecated: https://developer.mozilla.org/en-us/docs/web/html/element/isindex
but no info name attribute of input element. https://developer.mozilla.org/en-us/docs/web/html/element/input
is name deprecated or bug in chrome? there way solve issue standard submit or have js workaround modifying href.
Comments
Post a Comment