Check documentation for the latest version 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);
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