Skip to content

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

License

Notifications You must be signed in to change notification settings

BergenSoft/iframeActivationListener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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/

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published