checked="script"

This attribute is required for check buttons and radio buttons. Adobe Dreamweaver ignores the checked attribute for other types of items. As with menus, the script returns a value that specifies whether the item is checked or unchecked. The checked attribute is equivalent to isCommandChecked() in a toolbar command file. If you do not specify this attribute, it defaults to unchecked.

Example

checked="dw.getDocumentDOM() != null && dw.getDocumentDOM().getView() == 'code'"