jonas jonas - 1 year ago 108
Javascript Question

How to remove all event listeners from once any of them is first tiggered?

<script type="pseudo"> || = setTimeout(action(), 60000);****);

please correct into working JS.

  • It is unnecessary to keep listening the whole session long once first event happened.

  • It can't be like ...body onClick=(setTimeout... but must be about because it is a frame referring to whole page.

Answer Source
var listener = function(callback)
  setTimeout(function(){//your action function code},6000);

I hope it will help you.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download