This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Call Java Script without any event in JSP Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Call Java Script without any event in JSP Page" Watch "Call Java Script without any event in JSP Page" New topic
Author

Call Java Script without any event in JSP Page

Gajanan Bandale
Greenhorn

Joined: May 09, 2005
Posts: 22
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

Joined: Mar 22, 2005
Posts: 42952
    
  73
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call Java Script without any event in JSP Page