Why is my onclick event not registered in Firefox?

后端 未结 4 1786
南方客
南方客 2021-01-18 21:08

I have a list item with an onclick event. It runs in Chrome and Internet Explorer, but not Firefox. Any suggestions?

  • 4条回答
    •  一整个雨季
      2021-01-18 21:41

      This works fine for me in Firefox.

      Check this:

      1. JavaScript is enabled in your browser.

      2. Try adding a return false; statement in your tag.

      Or a function like this:

      function test() {
          //your code here
          return false;
      }
      
      1. Or use this:

      Link

      or this

      Link

    提交回复
    热议问题