🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

iframeActivationListener is a jQuery plugin that enables you to trigger an Activate event when a given iframe element gets focused.

IFrame

Documentation

iframeActivationListener

This jquery plugin triggers an "activate" event, when an iframe gets the focus

How to use

To enable this event for an iFrame, call the iframeActivationListener function on that jquery-iframe object.

Example

$(document).ready(function () {     $('iframe').iframeActivationListener();     $('iframe').on("activate", function(ev) { 	      console.log($(ev.target));     }); });

Live Example: http://jsfiddle.net/56g7uLub/4/


You May Also Like