What's in the article ?
<body> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = 5 + 6; </script> </body>
What we wanted to do in the script tags that we have written above is the collection of 5 and 6 numbers in the id part of the HTML, so that we can change the HTML content.
<body> <script> document.write(5+6); </script> <button type="button" onclick="document.write('gokmen')">Dene</button> </body>
Now, when you look at it in a way, we will send the output we will show this time thanks to a window from the browser, not within the HTML content. For example, you can count the entry of an ip address into your website, and in this box, it is possible to print a value like your 5th arrival today. But before that, what we need to learn is to convert it into an output value before printing anything else in this code. For this:
<body> <script> windows.alert('gokmen efsun'); </script> </body>
In the example above, when you enter the HTML page that you created this code, a small box will open automatically in the browser and it will say “gokmen efsun” in it. Later in this window.alert command, we will learn to write more commands together.