Check documentation for the latest version 6.0 of dhtmlxSuite setHref DHTMLX Docs

setHref

sets HREF to an item; overwrites the old one if it exists

void setHref(string|number itemId,string href,string target);

Parameters

itemIdstring|numberthe id of an item
hrefstringurl to open instead of handling the onClick event
targetstringtarget attribute

Example

myMenu.setHref(itemId, "www://dhtmlx.com", "blank");

Back to top