firefox - ff addon execute menu item -
i want modify existing addon simplicity. have code:
<popup id="contentareacontextmenu"> <menu id="llopenlocallink" label="&llopenlocallink.label;" insertbefore="context-sep-open" > <menupopup> <menuitem id="llopeninthistab" label="&llopeninthistab.label;" oncommand="locallink.openlinkinthistab(event)"/> <menuitem id="llopeninnewtab" label="&llopeninnewtab.label;" oncommand="locallink.openlinkinnewtab(event)"/> <menuitem id="llopeninnewwindow" label="&llopeninnewwindow.label;" oncommand="locallink.openlinkinnewwindow(event)"/> </menupopup> </menu> </popup> and want single menu entry executed if clicked. tried not executed:
<popup id="contentareacontextmenu"> <menu id="llopenlocallink" label="&llopenlocallink.label;" insertbefore="context- sep-open" oncommand="locallink.openlinkinnewtab(event)"> </menu> </popup> ok. found answer:
<popup id="contentareacontextmenu"> <menuitem id="llopenlocallink" label="&llopenlocallink.label;" insertbefore="context-sep-open" oncommand="locallink.openlinkinnewtab(event)"/> </popup>
Comments
Post a Comment