javascript functions are not called
in a JSP page I want to call a javascript function. But when I call it inside a "a" tag it isn't hit. But when I put an "onload" parameter in the "body" tag as follows, onload="" the function I called inside < a > tag is hit. Can anybody explain this situation please.
<a href="#" onclick="javascript:mufunction('hello-world')">Click Me</a>
If you are using the similar code above, then it should be working. Please debug your code via the developer consoles built-in a browser.
Please check the this link and check whether it is same as yours.
链接地址: http://www.djcxy.com/p/71240.html上一篇: 主要提供文档/已准备功能的Javascript框架
下一篇: JavaScript函数不被调用