Use the document.write() method to output "Hello World!". - Javascript DOM

Javascript examples for DOM:Quiz

Description

Use the document.write() method to output "Hello World!".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<script>
document.write("Hello World!");
</script>//w  w  w  . j  a  v  a 2s  .  co m

</body>
</html>

Related Tutorials