Created
December 3, 2015 16:28
-
-
Save ericakfranz/a41abb08d79309edafa3 to your computer and use it in GitHub Desktop.
Custom Redirect for all optins on close using the OptinMonster event 'OptinMonsterOnClose'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($){ | |
function omRedirect() { | |
var url = "http://optinmonster.com"; | |
$(location).attr('href',url); | |
} | |
$(document).on('OptinMonsterOnClose', function(event, data, object){ omRedirect(); }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment