Home > Article > Web Front-end > How to distinguish between two SUBMIT buttons_javascript skills
There are two SUBMIT buttons (such as "Modify" and "Delete") in a FORM form, and only one ACTION processing page
How to distinguish whether to process "Modify" or "Delete" in this ACTION page?
Method 1:
If the FORM form is like this:
You The value of Request("Action") can be read in ASP. If the user selects "Modify", then this variable is "Modify".
Method 2:
can be a script function, such as: