Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

calling javascript function in jsp without any event  RSS feed

 
satheesh subramani
Greenhorn
Posts: 29
Fedora Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to call a javascipt function without any event click
in my project, jdbc connectivity error message is shown by alert message
after submit the form only i get the error message, so how to show the message in alert message
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can put alert directly inside script tag and it will be called when page is rendered



If you are using jquery, you can use document.ready() to display the alert.

You can use the onLoad event of body tag



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!