| You are here: Home > Scripts > Javascript Popup Menu |
| ||||||||||||||||||
|
Back to ScriptseLouai's Javascript DHTML Popup MenuHow to implement a cross browser, right click popup menu using javascript (dhtml). The default contextmenu is disabled and replaced with our own div which we hide or make visible whenever the right mouse button (the context menu) is selected. The source code is split into the javascript source (see below) and the html source (see below) To demonstrate the popupmenu CLICK your RIGHT mouse button to display the Popup menu. Click anywhere OUTSIDE the menu to hide it It would be very easy to add either a javascript enabled command when a menu item is selected OR loading a web page. Note: since the context menu is effectively disabled select the text below and Control+C to copy. Javascript SourceHTML <DIV> SourceThis is the DIV that contains the popup menu |
|
contact us: elouai@gmail.com ©2003-2008 eLouai.com, All rights reserved |