getCurrentValue()
Availability
Adobe Dreamweaver MX.
Description
Returns the current value to display in the item. Adobe Dreamweaver calls the getCurrentValue() function for pop-up menus, combo boxes, text boxes, and color pickers. For pop-up menus, the current value should be one of the items in the menu. If the value is not in the pop-up menu, Adobe Dreamweaver selects the first item. For combo boxes and text boxes, this value can be any string that the function returns. For color pickers, the value should be a valid color, but Adobe Dreamweaver does not enforce this. This function is equivalent to the value attribute.
Arguments
None.
Returns
Adobe Dreamweaver expects a string that contains the current value to display. For the color picker, the string contains the RGB form of the selected color (for example #FFFFFF for the color white).
Example
function getCurrentValue(){ var title = ""; var dom = dw.getDocumentDOM(); if (dom) title = dom.getTitle(); return title;}