DHTMLX Docs & Samples Explorer

setHref(itemId, href, target)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxmenu_ext.js

set href to item, overwrite old if exists

  • itemId
  • href - url to open instead of onClik event handling
  • target - target attribute
    menu.setHref(itemId, "www://dhtmlx.com", "blank");