So now I tried:
//DESCRIPTION: Exploring the source of our one and only Cross Reference
(function(){ var xRef = app.documents[0].hyperlinks[0]; var source = xRef.source; for (p in source) { $.writeln(p + ": " + source[p]); }}())
And this returns:
appliedFormat: [object CrossReferenceFormat]
hidden: false
name: Hyperlink 1
sourceText: [object Text]
appliedCharacterStyle: null
id: 484
label:
isValid: true
parent: [object Document]
index: 0
properties: [object Object]
events: [object Events]
eventListeners: [object EventListeners]
isValid: true
And now we find a CrossReferenceFormat.
Dave