Guest User

Untitled

a guest
May 23rd, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. var DOMReady = function(a, b, c) {
  2. b = document
  3. c = 'addEventListener'
  4. b[c] ? b[c]('DocumentContentLoaded', a) : window.attachEvent('onload', a)
  5. }
  6.  
  7. DOMReady(function () {
  8. alert('The DOM is Ready!');
  9. });
Add Comment
Please, Sign In to add comment