...

View Full Version : my simple function does not work



velious
08-31-2004, 12:42 AM
<script language="javascript">
<!--
function show_alert_box()
{
alert("this is an alert box")
}

//-->
</script>

mcdougals4all
08-31-2004, 12:52 AM
What's the context? How are you calling the function?

For instance:

<body onload="show_alert_box()">

AaronW
08-31-2004, 12:55 AM
Functions are stored procedures :P You have to call them before they actually do anything.

Otherwise, try this:

<script type="text/javascript">
alert ("This is an alert box!");
</script>

velious
08-31-2004, 05:58 AM
ok thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum