![]() The DOMContentLoaded event is triggered when your whole HTML page has been loaded, even though some external JavaScript, CSS, and image resources are not yet fully loaded. addEventListener ( "DOMContentLoaded", changeBackgroundRed ()) Change the background on load JavaScript change background color // The function below will change the background colorįunction changeBackgroundRed () // call the function when the whole DOM content is loadedÄocument.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |