View Full Version : my simple function does not work

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


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

For instance:

<body onload="show_alert_box()">

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!");

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

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum