Specifications

492
dreamweaver.historyPalette.getStepCount()
Availability
Dreamweaver 3
Description
Gets the number of steps in the History panel.
Arguments
None.
Returns
An integer that represents the number of steps that are currently listed in the History panel.
dreamweaver.historyPalette.getStepsAsJavaScript()
Availability
Dreamweaver 3
Description
Gets the JavaScript equivalent of the specified history steps.
Arguments
arrayOfIndices
arrayOfIndices
is an array of position indices in the History panel.
Returns
A string that contains the JavaScript that corresponds to the specified history steps.
Example
If the three steps shown in the following example are selected in the History panel, a call to
dreamweaver.historyPalette.getStepsAsJavaScript(dw.historyPalette.getSelectedS
teps())
returns "dw.getDocumentDOM().insertText(’Hey diddle diddle, a cat and a
fiddle, the cow jumped over the moon.’);\ndw.getDocumentDOM().newBlock();\n
dw.getDocumentDOM().insertHTML(’<img src=\"../wdw99/50browsers/images/
sun.gif\">’, true);\n"
: