using th edom model in javascript code example Example: DOM <body onload="window.alert('Welcome to my home page!');">