Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call Java Script without any event in JSP Page

 
Gajanan Bandale
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to call a Java Script Function in JSP Page without any event active.... But it should not at OnLoad Event


Thanks in Advance....
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If not during an event, then when specifically should that JS code run?

You can use a timer to run code after a set amount of time has passed.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Ulf said, when do you actually want it to run?

There is a thing called inline, just add the call to the page. fires when executed.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic