JS v jQuery Event Listener

Just so I remember…


window.addEventListener('universalVariableUpdated', function() {
alert('UV Present (raw JS)');
})

jQuery(window).on("universalVariableUpdated", function() {
alert('UV Present');
});

Contribute

Got a flickr account? Got a photo that illustrates this post? Just add the following triple tag and as if by magic, it will appear here:

zedzdead:blog=181

Leave a Reply

Your email address will not be published. Required fields are marked *