zhyhero Posted July 4, 2022 Share Posted July 4, 2022 1.click "Run" button 2.click "Hello" button 3.click "Run" button again 4.click "Hello" button ... Then we can see , strings "hello" are input to memo more and more and more. scripts execute more times. Any idea ? HtmlFrame_Js_function.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 4, 2022 Share Posted July 4, 2022 Hello, Because you are assigning a new event every time. Quote Link to comment Share on other sites More sharing options...
zhyhero Posted July 4, 2022 Author Share Posted July 4, 2022 17 minutes ago, Sherzod said: Hello, Because you are assigning a new event every time. Thank you. I add Script " $(document).off("click",".bt1"); ", now working right . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.