rishabh dev rishabh dev - 1 year ago 82
Javascript Question

reliabilty of 'isConnected' field in dom node

domNode.isConnected
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');
alert(input.isConnected);
<input type="text" id="input">

https://jsfiddle.net/hu08awn0/

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