Defined events

klevu.extend( target [, object1 ] [, objectN ] )
Returns: Object

Description:  Bind an event handler to the JavaScript event.

klevu.event.attach : function ( target , event , callBack , useCapture )

  • target – dom node target
  • event – js event name , refer to event list for support
  • callBack – function to be executed when event is fired
  • useCapture –  default false – A Boolean indicating whether events of this type will be dispatched to the registered listener before being dispatched to any EventTarget beneath it in the DOM tree.

Example:

klevu.event.attach(
 document.getElementsByTagName("body")[0],
 "click",
 function(){
    console.log("document is loaded")
  }
);

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>