What to do when an action requires a return value

Sometimes an event handler must have a return value (for example, onMouseOver="window.status='This is a link'; return true"). But if Adobe Dreamweaver inserts the "return behaviorName(args)" action into the event handler, behaviors later in the list are skipped.

To get around this limitation, set the document.MM_returnValue variable to the desired return value within the string that the behaviorFunction() function returns. This setting causes Adobe Dreamweaver to insert return document.MM_returnValue at the end of the list of actions in the event handler. For an example that uses the MM_returnValue variable, see the Validate Form.js file in the Configuration/Behaviors/Actions folder within the Adobe Dreamweaver application folder.