In my current project using Drupal 5, I have a specific .js file that is included using the code:
drupal_add_js(drupal_get_path('module','MTM')."/include/JS_form.js");
Additionally, there is an element on the page:
<a onclick="MTM_test()">Name⇑</a>
The JS code in JS_form.js looks like this:
<script type="text/javascript">
function MTM_test(){
alert('A');
}
</script>
Despite the fact that the element is present in the page's source code, clicking on it does not trigger any action. What could be causing this issue?