canInspectSelection()

Description Determines whether the property inspector is appropriate for the current selection.
Arguments None.

Use dom.getSelectedNode() to get the current selection as a JavaScript object.

Returns TRUE if the inspector can inspect the current selection; FALSE if it cannot.
Example The following instance of canInspectSelection() returns TRUE if the selection contains the CLASSID attribute and the value of that attribute is clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 (the class ID for Flash Player):
function canInspectSelection(){
  var theDOM = dw.getDocumentDOM();
  var currSel = theDOM.getSelection();
  var theObj = theDOM.offsetsToNode(currSel[0],currSel[1]);
  return (theObj.nodeType == Node.ELEMENT_NODE && theObj.hasAttribute("classid") && theObj.getAttribute("classid").toLowerCase()=="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
}