WebInspector.isAttached
bool isAttached()Whether the inspector view is currently attached to the same window that contains the inspected view.
Returns
true if inspector is currently attached or false otherwise
bool isAttached()Whether the inspector view is currently attached to the same window that contains the inspected view.