to add new functions on the fly use this format obj.event = function() {foo(goo)}; for example: v.onblur=function() {checkBool(this)}; and in your case newCell.onMouseMove=function() {doThis()}; should work.
Note that 'function()' above is not a specific function, this is the command syntax. HTH Doug >-----Original Message----- >From: John McCosker [mailto:[EMAIL PROTECTED] >Sent: Wednesday, September 10, 2003 2:10 PM >To: CF-Talk >Subject: js question > > >Hi, > >I You can dynamically create <tr> and <td> elements on the fly, >like, > >var newRow=cell_root_table.insertRow(0) > >then add attributes like, > >newRow.vAlign='top' > >then to add a cell, > >var newCell=newRow.insertCell(0) > >but I can't seem to add event handlers on the fly, >like newCell.onMouseMove='doThis()', > >Is there a way to do this? > >J > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com