javaScript能实现删除触发功能吗?该怎么处理

javaScript能实现删除触发功能吗?
各位网友
        我想在我的基于 <iframe> 的html编辑器内实现如下功能,当用户插入图片或表格等对象后,若删除该对象触发一函数,进一步若对该对象进行改变属性等操作时也触发一函数,请问这些功能用javaScript可以实现吗?我新学还不是很熟悉.请大家给些实例,资料,思路.谢谢大家

------解决方案--------------------
1.要删除该对象,肯定是你自己执行了某个操作.如按下某个键,此时你可以捕获键盘的单击事件,如果是其他触发操作,同样可以捕获其他类似事件.
2.属性改变时,会触发对象的onpropertychange事件.说明如下:
The onpropertychange event fires when properties of an object, expando, or style sub-object change. To retrieve the name of the changed property, use the event object 's propertyName property. This property returns a read-only string of the name of the property that has changed. In the case of Cascading Style Sheets (CSS) properties, the property name is prefixed with style. For example, if the CSS property pixelLeft is altered, the value of window.event.propertyName is style.left. By contrast, if the non-CSS property name is altered, the value of window.event.propertyName is name.


------解决方案--------------------
可以

------解决方案--------------------
新学就玩编辑器这么高级的东西啦?