I'm adding some document to addhandler, where this script will execute on each time on ajax call.
开发者_StackOverflowBut on the ajax result how can I remove the handler, where i tried using removeHandler but for the first time its getting affected.
Is any method to check whether the event is alive kill it.
If you want to remove an event handler with Javascript, you need to unsubscribe it this way:
document.getElementById("yourelement").removeEventListener("yourEvent", yourFunction);
精彩评论