Calling Javascript from a html form

后端 未结 6 422
眼角桃花
眼角桃花 2021-01-30 06:18

I am basing my question and example on Jason\'s answer in this question

I am trying to avoid using an eventListener, and just to call handleClick

6条回答
  •  天涯浪人
    2021-01-30 07:09

    Remove javascript: from onclick=".., onsubmit=".. declarations

    javascript: prefix is used only in href="" or similar attributes (not events related)

提交回复
热议问题