Skip to content
Advertisement

Tag: this

JavaScript setInterval and `this` solution

I need to access this from my setInterval handler How can I access this.prefs in ajax.onload? Answer The setInterval line should look like this:- Edit: The same principle applies to the ” onload “. In this case its common for the “outer” code to do little, it just sets up the request an then sends it. In this case the

Advertisement