Click to See Complete Forum and Search --> : Calling JS functions


kopite
05-18-2003, 12:20 PM
Hi,

I want to call a javascript function "myLocal()" that is embedded as part of a html page - from another javascript function that is accessible from that page as below:

example:
<script type="text/javascript" src="myJs.js"></script>

I would have thought something like top.myLocal() would be fine, but it does not work, it just returns [object Error]. Any ideas?

....

AdamBrill
05-18-2003, 12:25 PM
If they are both on the same page, you should be able to just do this:

myLocal();

If that doesn't work, post your code...