JavaScript error on page - why? What is it?

Associate
Joined
20 Oct 2002
Posts
680
Hi All. Just wondering if anyone could shed some light on this error I have on a website. It uses a JavaScript menu and every page that has the menu on has an error at this point...

m.initTop(); <----HERE
m.init();
m.show();
</script>

The error is...

Object doesn't support this property or method.

The error does not seem to have any effect on the workings of the site and the menu works fine…weird.

I know less than nothing about JavaScript but know a bit about other languages. Anyone have any ideas or able to point me in the right direction?

Many thanks.
 
Thanks for the posts. This was a third party menu as you will see from the script. I have emailed the developers but so far no response!

This is the entire piece of code...

<script type="text/javascript" src="common/js/coolmenupro.js"></script>
<script type="text/javascript" src="common/js/menuitems.js"></script>
<script type="text/javascript">
var m = new COOLjsMenuPRO("menu1", MENU_ITEMS_ARROWS)
m.initTop();
m.init();
m.show();
</script>

You may need some code from the other linked js files?

Many thanks.
 
Back
Top Bottom