MenuManager.appendMenuSeparator Member

Appends a menuseparator to an existing menu or popup.

Syntax

object.appendMenuSeparator(parentNode, beforeNode, attribs);

Arguments

ArgumentSummary
parentNode DOM Node to insert into
beforeNode DOM Node already contained by parentNode, to insert before
attribs Object containing CSS attributes to set on the element.

Returns

Remarks

See Also

Source Code

function mmgr_addsep (parentNode, beforeNode, attribs)
{
var document = parentNode.ownerDocument;
var menuitem = document.createElement ("menuseparator");
menuitem.setAttribute ("isSeparator", true);
if (typeof attribs == "object")
{
for (var p in attribs)
menuitem.setAttribute (p, attribs[p]);
}
parentNode.insertBefore (menuitem, beforeNode);
return menuitem;
}