Forum Moderators: open

Message Too Old, No Replies

Right Click Menu help

Needing to create custom right menu for different events

         

bootcom_uk

7:48 pm on Dec 4, 2003 (gmt 0)

10+ Year Member



Ive created an online WYSIWYG editor, using an iframe for the editable content. One stumbling block I have come across is that when the user right clicks on one of the objects (eg table) I want a menu to appear, specifically for that object, so that the user may remove cells, split cells etc.

I am wanting to do this for most objects, such as forms. I was thinking about using the getElementsByTagName command, but if I had multiple forms (or whatever) Im not sure whether it would work.

Please could someone give me a nudge in the right direction? Thanks

HocusPocus

2:12 am on Dec 5, 2003 (gmt 0)

10+ Year Member



I wouldn't attempt to reinvent the wheel by writing your own script, use some freeware script and modify to your needs.

I just did a search for
right click context menu javascript
Cut & Paste Right-click Menu seems a good free one.

dcrombie

11:53 am on Dec 5, 2003 (gmt 0)



Mac users don't have a right-button...