Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

javascript inside html

<html>
	<head>
    	<script>
        	window.onload=function(){
            	document.body+=`<span>Hello World!</span>`
            }
        </script>
    </head>
    <body>
    	<!-- When the page loads, a span element will apear here -->
    </body>
</html>
 
PREVIOUS NEXT
Tagged: #javascript #html
ADD COMMENT
Topic
Name
6+7 =