File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Button Onclick event Not Functioning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Button Onclick event Not Functioning" Watch "Button Onclick event Not Functioning" New topic

Button Onclick event Not Functioning

Ayan Biswas
Ranch Hand

Joined: Jul 10, 2010
Posts: 104
Here is my button tag

And the javascript function is bellow

But this is not working.The javascript function is not getting called when I click on the button.
Although the same function is working properly image onclick event

(I am using Struts 1).What to do now?

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Looking at serverside code never helps with clientside, what does the generated code look like? View page source, copy that code.

also javascript: label is a waste, remove it.

I agree. Here's the link:
subject: Button Onclick event Not Functioning
It's not a secret anymore!