In this practice, we use onload event at body. Like this:
For this purpose, we must modify our myjs.js. Modify it become like this:
We create new function: lyricstyle(). We don't put in $(document).ready(). What is impact? This causes our code to run after the page is completely loaded.
|Series this article: |
jQuery: My First Code
jQuery: Using Event Handler
blog comments powered by Disqus