Using document write method



Using document.write()
For testing our  JavaScript coding on web page to use document.write() :

<!DOCTYPE html>
<html>
<body>

<h1>My First Web Page</h1>
<p>My first paragraph.</p>

<script>
document.write(5 + 6);
</script>

</body>
</html>


Comments

Popular Posts