<HTML> <body oncontextmenu = showmenu ('')> <form name =" menuform "> <! -- Hide box, used to save the id value of the selected menu --> <input type = "hidden" name = "ID" value = ""> <Table> <tr> <TD> <a href = "javascript: clickmenu () "oncontextmenu = showmenu ('0')> root directory </a> </TD> </tr> <TD> <a href =" javascript: clickmenu () "oncontextmenu = showmenu ('1')> menu 1 </a> </TD> </tr> <TD> <a href =" javascript: clickmenu () "oncontextmenu = showmenu ('2')> menu 2 </a> </TD> </tr> <TD oncontextmenu = showmenu ('2')> menu 2 </TD> </tr> </table> </F Orm> <a href = "javascript: window. Location. href = 'HTTP: // www.baidu.com '"> go </a> </body> <! -- The right-click menu to be displayed --> <Div id = "itemmenu" style = "display: none "> <Table border =" 1 "width =" 100% "Height =" 100% "bgcolor =" # cccccc "style =" border: thin "cellspacing =" 0 "> <tr> <TD style =" cursor: default; Border: outset 1; "align =" center "onclick =" parent. create () "> Add </TD> </tr> <TD style =" cursor: default; Border: outset 1; "align =" center "onclick =" parent. update (); "> modify </TD> </tr> <TD style =" cursor: default; Border: Outset 1; "align =" center "onclick =" parent. Del () "> Delete </TD> </tr> </table> </div> <! -- Right-click the menu to end -->