Slide 11.a: JavaScript Slide 11.c: JavaScript how to … Home |
document.write("<h1>" + name + "</h1>")
can write a variable text into an HTML page
The HTML <script> tag is used to insert a JavaScript into an HTML page. The code will produce this output on an HTML page: “Hello, World!” |
|