You are here:   Home > Scripts > Javascript Popup Menu
What's
New
Doll
Makers
Room
Makers
Puzzle
Makers
Roiworld Stardoll Links
GirlSense - online dress up games for girls with fashion sense

Back to Scripts

eLouai's Javascript DHTML Popup Menu




How 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 Source


HTML <DIV> Source


This is the DIV that contains the popup menu





About     Privacy Policy     Hosting by Web Hosting Canada

Except where otherwise noted, this site is licensed under a Creative Commons License



contact us: elouai@gmail.com
©2003-2008 eLouai.com, All rights reserved