<script>

document.createEvent('CustomEvent').detail;

</script>