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.