Created
December 20, 2015 15:27
-
-
Save emetselaar/aa522de6d43912788f50 to your computer and use it in GitHub Desktop.
MRAID click out
This file contains 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
var clickTag = "#CLICK_URL#"; | |
function handleClick() { | |
if (typeof(mraid) !== "undefined") { | |
mraid.open(clickTag); | |
} else { | |
window.open(clickTag, '_blank'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment