how to call javascript function with out any event

HiI am using struts based html tags. when a particular condition is satisfied then i want to invoke the javascript function(<logic:equal>)can any one give solution to this.Thanks
[212 byte] By [Vishantha] at [2007-11-26 20:34:58]
# 1
Need some more information to clarify the task.Normally you can use onLoad function on if else condition
Ankia at 2007-7-10 1:27:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...