Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts html event

 
Chris Pat
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I have problems triggering a javascript function from a struts tag.

<script>
function test(){
window.alert("hello from test");
}
</script>
<html:button property="" value="Test Button" onklick="test()"/>

I never see the alert.
 
Vani Bandargal
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it seems onclick(onKlick) is mispelled .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic