Can't Return any values from Functions

Giganews Newsgroups
Subject: Can't Return any values from Functions
Posted by:  schavag… (Zhichun Pu)
Date: 15 Jul 2003

Hi guys,

I can't seem to get anything returned from functions.

If I use the <script src = ... > command, nothing works. But if I
define the functions locally within the file, then it works.

Something simple:

function abc() { return 99; }

If I tried to access this function by placing it inside a .js file,
and then including it, it returns "undefined". Everything else works
except for returned values...

If I define this function locally, it returns correctly the value of

What is going on?? This is so weird.