rishabh dev rishabh dev - 1 year ago 86
Javascript Question

reliabilty of 'isConnected' field in dom node

is a flag which is available in chrome. It shows whether domNode is part of the document.
Is it cross browser compatible?
If not is there any efficient alternative for this for other browsers?
Please provide link for any available documentation.

Answer Source

A quick test shows Firefox doesn't support this property. So the answer is no.

var input = document.getElementById('input');
<input type="text" id="input">


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download