How to HTTP POST from a link without JS

后端 未结 3 1072
梦如初夏
梦如初夏 2021-01-11 10:54

Any methods to submit a POST request from a link if JS is disabled?

Ideeas so far (none of them perfect)

  1. Use , but I need a
3条回答
  •  走了就别回头了
    2021-01-11 11:25

    No, there isn't.

    Links afford going somewhere. Buttons afford sending data somewhere.

    If you want to use a link to make a POST request, then you are either sending confusing signals to users or you have your backend setup to use the wrong type of HTTP request for the task.

提交回复
热议问题