Whilst all solutions proposed they function, there's one API-compliant
to use:

                GEvent.addDomListener(window, "load", load);
                GEvent.addDomListener(window, "unload", GUnload);

Using GEvent you've the ENOURMOUS advantage you can attach MORE event
handlers to a single event, without worrying execution time and race
conditions.
Definitely, anyone should begin and leand and use such an approach, if
there's no SOLID argument against.






On Jan 17, 2:20 pm, Tintin81 <[email protected]> wrote:
> Hi there,
>
> I'm a GoogleMaps newbie and know nothing about Javascript or AJAX. Now
> here's my (fairly simple) question:
>
> How can I include a simple GoogleMap on my website without using this
> statement in my HTML:
>
> <body onload="load()" onunload="GUnload()">
>
> My content management system can't handle it and I would like to put
> it into an external .js file. How can I do that?
>
> I've been searching the API for hours, but without any success. Thanks
> for any feedback.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to