How to HTTP POST from a link without JS

后端 未结 3 1153
梦如初夏
梦如初夏 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:44

    The one solution I can think of is to have a form on the page with a button styled so that it simply looks like a text link.

    When Javascript is enabled, you can gracefully hide this form and allow the normal link to take precident and if Javascript is disabled, allow the user to still use the system.

提交回复
热议问题