Home >
front end > Why the function also is put in the SCRIPT code, the code in the page is loaded after don't aut
Why the function also is put in the SCRIPT code, the code in the page is loaded after don't aut
Why the function also is put in the SCRIPT code, the code in the page load is not automatically after execution, and other code automatically when the page loads, the following code
<script>
document. Write (" hello ");
Document. Write (" & lt; H1 & gt; Through the document. The write output content 1 & lt;/h1 & gt;" ); function changeContent () {
Document. The getElementById (" demo "). The innerHTML="through innerHTML method to output the content page 3";
} </script>
<body>