To create an Alert popup, you have to remember this part:
Code:
function message()
This is placed at the top of the script part.
Now to the rest of it. Put in a "{", write "alert("Whatever-you-want-to-write")" and end with a "}".
Code:
function message()
{
alert("This is my bloody exciting alert about penguins.")
}
You can write an another "alert("")" between the previous "alert("")"-line and the ending-} if you want to display another alert after the previous alert.
End the whole thing by adding "<body some-kind-of-event,-like-for-example-onLoad,-onUnLoad-or-onDblClick="message()">" between the <body> and the </body> tag.
And the final result is:
Code:
<html>
<head>
<title>Whatsoever</title>
<script type="text/javascript">
function message()
{
alert("This is my bloody exciting alert about penguins.")
alert("They are very fuzzy.")
alert("Aren't they?")
alert("Kthxbi")
}
</script>
</head>
<body>
<body onLoad="message()">
</body>
</html>
Note: If you want to break a line (What the Enter-key does in a document), just place out ""+'\n'+"" in the sentence, like this:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum