You can download my sample code using one of the following link:
– Click here to view the demo page. (no longer active)
Areas I found of particular interest:
- the windows.document node of the tree.
- the window.top.document.scripts link will list all the script tags, and the associated script if the actual script is embedded within the document.
Below is a link to the demo, but first, remember to look at the root window node in the tree. This will expand to show the context of the child items in the tree view. For example, if you click on the document node, the root node will change from window to window.document, and the child nodes will change to reflect the child objects for the document node. Additionally, the window portion of the root node can be clicked to return to the root window context.