View Full Version : my simple function does not work

08-30-2004, 11:42 PM
<script language="javascript">
function show_alert_box()
alert("this is an alert box")


08-30-2004, 11:52 PM
What's the context? How are you calling the function?

For instance:

<body onload="show_alert_box()">

08-30-2004, 11:55 PM
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!");

08-31-2004, 04:58 AM
ok thanks

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum