Here is the code.
<script language="JavaScript"> alert("This is an Alert Box") </script>
Result: What came up at the start of the page. Click here if you missed it.
Since this is probably your first time seeing this I will go through each part. The first line tells the browser that the following code is Java-Script. Then comes the alert box. In the quotation marks you put what you want the alert box to say. But if you where using a variable you would take out the quotation marks, but we will get into that later. Then just like making a hyperlink in HTML, you have to end it with a /. Only you put script, because its the end of the JavaScript. |