Created
November 8, 2018 13:28
-
-
Save krillo/6caa123128f560e4889777f400e04034 to your computer and use it in GitHub Desktop.
wait for page to load - vanilla js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- add a function to the event listener of page loded --> | |
<script> | |
window.addEventListener("load", function() { | |
console.log('krillo'); | |
$('#motivation').keypress(function (e) { | |
console.log('krillo'); | |
} | |
); | |
}, true); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment