Filippo oretti
Filippo oretti

Reputation: 49813

jQuery/Javascript bind function to window/document without specifying an event

Is there anyway to bind a function to the document/window without using events or setInterval/timeout ?

i mean i would like to bind function like :

$(document).bind(function(){
 //if element changed class remove element
});

maybe it's a stupid question but i would like to not use loops over element.

Upvotes: 1

Views: 1077

Answers (1)

Davorin
Davorin

Reputation: 1204

If you are referring to "on DOM change" events, take a look at these answers:

Upvotes: 1

Related Questions