sorry, more specifically, is it possible to have a javascript action in an info box?
On Jul 17, 7:10 pm, Esa <[email protected]> wrote: > On Jul 17, 8:41 pm, Andrew Leach <[email protected]> > wrote: > > > On Jul 17, 5:11 pm, sbentzen <[email protected]> wrote: > > > > is it possible to have a link or span that does something upon > > > clicking, like switching map types by clicking on the link in the box? > > > Yes. Any HTML element can specify an onclick event handler. > > Right, but 'onclick' has a restriction that you can attach only one > function to that event. Google Maps API offers you > > GEvent.addDomListener(source:Node, event:String, handler:Function) > > that adds any number of functions to a DOM event. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
