Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Adding this event listener prints the message
- // into browser's console whenever the window
- // is resized (emits the "resize" event).
- //
- // Note that the "resize" event occurs for each
- // pixel that the browser being resized.
- window.addEventListener('resize', function () {
- console.log('Resize happened!')
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement