Having a button open an alert window, create a new button, and then open a new alert window.
This is my basic code without the html header and ending. I am trying to do a javascript button push to help people realize the dangers of clicking on random links or buttons from within a web page. I have beena ble to get everything but the show_alert2 function to work. I am very new to javascript so I might just be missing suomething but I can not figure out what it is. Any help would be most appreciated.

<head>
<script type="text/javascript">
function show_alert()
{
alert("You really just clicked on a random button?");
document.write("<h1>Hi there. You have just been hacked.</h1>");
document.write("<p>It is a very bad Idea to click on links that you don't know where they lead too.</br>Click on the button below to fix the damgaes to your computer.</p>")
document.write('<input type="button" id="delta" onmouseup="show_alert2()" value="Save your System." />');
}
function show_alert2()
{
alert("Some People never Learn do they....");
}
</script>
</head>
<body>
<input type="button" onclick="show_alert()" value="Show alert box" />

</body>


Having a button open an alert window, create a new button, and then open a new alert window.
===

This is my basic code without the html header and ending. I am trying to do a javascript button push to help people realize the dangers of clicking on random links or buttons from within a web page. I have beena ble to get everything but the show_alert2 function to work. I am very new to javascript so I might just be missing suomething but I can not figure out what it is. Any help would be most appreciated.

<head>
<script type="text/javascript">
function show_alert()
{
alert("You really just clicked on a random button?");
document.write("<h1>Hi there. You have just been hacked.</h1>");
document.write("<p>It is a very bad Idea to click on links that you don't know where they lead too.</br>Click on the button below to fix the damgaes to your computer.</p>")
document.write('<input type="button" id="delta" onmouseup="show_alert2()" value="Save your System." />');
}
function show_alert2()
{
alert("Some People never Learn do they....");
}
</script>
</head>
<body>
<input type="button" onclick="show_alert()" value="Show alert box" />

</body>

