Right button click event
This event occurs when the user clicks the right mouse button on any node. Check it out!
This event occurs when the user clicks the right mouse button on any node. Check it out!
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxtree.css"> <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../codebase/dhtmlxtree.js"></script> <div id="treeboxbox_tree" style="width:260px; height:260px;background-color:#f5f5f5;border :1px solid Silver;"></div> <div id="details"></div> <br> <script></script>function _rclick(id) { document.getElementById("details").innerHTML = 'Right click:' + id; return false; } tree = new dhtmlXTreeObject("treeboxbox_tree", "100%", "100%", 0); tree.setSkin('dhx_skyblue'); tree.setImagePath("../../codebase/imgs/csh_bluebooks/"); tree.enableDragAndDrop(true); tree.setOnRightClickHandler(_rclick); tree.loadXML("../common/tree3.xml");