Skip to content

Instantly share code, notes, and snippets.

@ermst4r
Created October 31, 2016 14:10
Show Gist options
  • Select an option

  • Save ermst4r/a471ed0c1910a36d890c59eb7963ba35 to your computer and use it in GitHub Desktop.

Select an option

Save ermst4r/a471ed0c1910a36d890c59eb7963ba35 to your computer and use it in GitHub Desktop.
Popup-script
<script type="text/javascript">
function addEvent(obj, evt, fn) {
if (obj.addEventListener) {
obj.addEventListener(evt, fn, false);
}
else if (obj.attachEvent) {
obj.attachEvent("on" + evt, fn);
}
}
addEvent(window,"load",function(e) {
addEvent(document, "mouseout", function(e) {
e = e ? e : window.event;
var from = e.relatedTarget || e.toElement;
if (!from || from.nodeName == "HTML") {
window.location.href="https://meespelen.lotto.nl/";
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment