1 Reply Latest reply on Sep 10, 2015 7:11 AM by rosebudd

    Banner that automatically closes and button


      I have to create a banner that closes in two ways: After 15 seconds, and the user click the close button.



      // command to close automatically

      console.log ('15s Timer Start ");

      setTimeout (function () {

           //Enabler.close ();

           _jsFechaBanner ();

           console.log ("AutoClose after 15s");

      }, 15000);



      // command close button

      Enabler.reportManualClose (); // Both the two commented Enabler command or not. The error continues.

      Enabler.close ();

      _jsFechaBanner ();



      // The displayed error

      Javascript error in event handler! Event Type = element



      Can someone help me? I've looked on the internet about it and do not think a solution