If form is submitted via javascript with button onclick, name and value parameters are not sent

Confirmed Issue #15182543 • Assigned to travil

Details

Author
Ágnes G.
Created
Dec 21, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Reports
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce

Given a HTML form with a button that does not have type="submit" attribute, but has an onclick method that does the submitting via javascript;

When I click this button in Edge;
Then the name and value attributes of the button are not sent with the other form data.

When I click this button in IE11;
Then there are 2 requests sent to the server: one without the button name and value and one with the button name and value included.

On the contrary, when I click this button in Firefox or Chrome, the button name and value is always sent with the form data.

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Assigned To to “bbrinza”

    Changed Assigned To to “travil”

    Changed Status to “Confirmed”

You need to sign in to your Microsoft account to add a comment.

Sign in