Forms with action=“”

后端 未结 4 1054
余生分开走
余生分开走 2020-12-01 06:50

I just found out (the hard way), that when you have a HTML form with action=\"\", Webkit browsers treat it differently to Firefox and Internet Explorer.

4条回答
  •  死守一世寂寞
    2020-12-01 07:20

    The best way in my opinion would be not to omit the action attribute (which would not validate) but to specify the actual action for the form. Is there a reason you are not specifying the action?

提交回复
热议问题