I don't know if there is an "onenter" input attribute... that might be a problem.
In your case tho, I think you could just do this, and fake the enter key listener (since it's in a form, enter is bound by default to submit). I think. <form onsubmit="entermessage();return false;"> Which I hope would fire every time enter is pressed, but don't know for sure. Otherwise you'd have to listen for a keypress, I guess, and see if the key pressed was the enter key. I've got some examples of that lying around if you need it. The interweb has 'em too. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280735 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4