This is probably a very simple question.
I have a few forms and I would like to place some js code on the 'onload' event of the form.
Where should I insert the "body onload" code for it to work?
Thanks!
I have a few forms and I would like to place some js code on the 'onload' event of the form.
Where should I insert the "body onload" code for it to work?
Thanks!
Hi focax,
Put it in the form JavaScript box but wrapped in a function like this
Bob
PS I prefer the MooTools 'domready' event which fires a little earlier
Put it in the form JavaScript box but wrapped in a function like this
window.addEvent('load', function() {
// add your script here
});
Bob
PS I prefer the MooTools 'domready' event which fires a little earlier
This topic is locked and no more replies can be posted.