As in the title, action is submitted to this page, refreshed, action="", refreshed, corresponding to input tags and the like, pressing enter will automatically submit, but action="javascript:void(0)" ,In this way, you don’t need to submit, and the press enter will not trigger it. But is this way of writing scientific?
Action If nothing is written, it means the current path
If it is written, it means the relative path For example, # is considered to be the current path with #
javascript:void(0)
means executing the javascript protocol
Support the answer on the 1st floor