How to Execute Javascript When Page Has Fully Loaded - as we know we use $ (document) .ready () to execute the command jquery
How to Execute Javascript When Page Has Fully Loaded - as we know we use $ (document) .ready () to execute the command jquery, but sometimes the order was not able to walk properly due to several factors, perhaps as a result of external script we use indirectly we put it in the instead of javascript commands like js load functions on this page http://www.gee.web.id/2016/11/solusi-blogspot-untuk-speed-leverage.html. instead of javascript commands like js load functions on this page http://www.gee.web.id/2016/11/solusi-blogspot-untuk-speed-leverage.html.
to execute the command jquery then the page should be fully loaded, including images and others to the command used is the javascript DOM, for its application as follows:
so you can change the command to do anything in that column as an example of script code below
okay see you in the next post, if still confused, you can comment below, I will respond as soon as possible.
Versi Indonesia :
sebagaimana kita ketahui we use $(document).ready() untuk mengeksekusi perintah jquery, namun terkadang perintah itu tidak bisa berjalan dengan baik dikarenakan beberapa faktor, mungkin akibat script external kita gunakan tidak langsung kita taruh di melainkan dari perintah javascript seperti fungsi load js di halaman ini.
untuk mengeksekusi perintah jquery maka halaman harus sepenuhnya loaded termasuk gambar dan lain lain untuk itu perintah yang digunakan adalah javascript DOM, untuk penerapannya sebagai berikut :
nah kamu bisa ganti lakukan perintah apa saja di kolom tersebut contoh seperti kode script dibawah ini
to execute the command jquery then the page should be fully loaded, including images and others to the command used is the javascript DOM, for its application as follows:
<script> window.onload = function () { // your $(class).function here } </script>
so you can change the command to do anything in that column as an example of script code below
<script> window.onload = function () { alert("It's loaded!") } </script>
okay see you in the next post, if still confused, you can comment below, I will respond as soon as possible.
Versi Indonesia :
sebagaimana kita ketahui we use $(document).ready() untuk mengeksekusi perintah jquery, namun terkadang perintah itu tidak bisa berjalan dengan baik dikarenakan beberapa faktor, mungkin akibat script external kita gunakan tidak langsung kita taruh di melainkan dari perintah javascript seperti fungsi load js di halaman ini.
untuk mengeksekusi perintah jquery maka halaman harus sepenuhnya loaded termasuk gambar dan lain lain untuk itu perintah yang digunakan adalah javascript DOM, untuk penerapannya sebagai berikut :
<script> window.onload = function () { // your $(class).function here } </script>
nah kamu bisa ganti lakukan perintah apa saja di kolom tersebut contoh seperti kode script dibawah ini
<script> window.onload = function () { alert("It's loaded!") } </script>oke sampai ketemu lagi di posting selanjutnya, jika masih bingung kamu bisa komentar dibawah, saya akan respon secepatnya.
COMMENTS