addLoadEvent(
function() {
alert('Page Loaded');
}
);
does it for me.
tom
On 11/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> I want to call a javascript while the page reloads. So in the KID page
> I tried putting the javascript call in the body tag :
>
> <body onload="callajavascript()">
>
> But this is evoking no response for some reason unknown to me.
>
> I have even tried the following way :
>
> <head>
> <script type="text/javascript">
> window.onload = function() {
> alert("onload");
>
> }
> window.onresize = function() {
> alert("onresize");
>
> }
> </script>
> </head>
>
> In this case also the script is not being called on resize or onload.
> Can any one please tell me what is wrong. Is there any way to achieve
> the same using Mochikit?
>
> Thanks and Regards
> Roopesh
>
>
> >
>
--
http://intellectronica.net/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---