Javascript code is usually triggered by events.
(don't forget to try the unload event)
roll over me