> The problem is, without the <form> tags, absolutely nothing happens > when I click 'return' on my keyboard.
Well yes, without any <form> the browser will have no idea what you want you it do if you click 'return', same as if you click it on any other form-less webpage, or click 'a' or 'x' or whatever. So using the <form> tags is a good idea, and also helps with technical validity, and also accessibility for your users. But, if you do use <form> tags you need to tell the browser what to do with it! When you click 'return', the browser looks for an action= attribute which is the conventional way to tell it where to send the form contents. In this case, you want to intercept that action and make it run your javascript function instead, the same as clicking your form button. To do that, you give the <form> tag an onsubmit= attribute, which is detailed in the reference I gave, and many other DHTML guides. http://www.google.co.uk/search?hl=en&q=dhtml+form+onsubmit&meta=&aq=f&oq= cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
