An explanation:All functions (like alert() and submit() and so on) can be either called through:1. A statement: alert("blah");2. A function, called through an event, or through #1: function myFun(){alert("blah")}So, if you want the page to alert without any trigger, just put alert(). If you want a trigger, put it in a for, if, while-else, or function.Hope that helps!