Re: Detecting which context menu item was selected
- From: brisco5@xxxxxxxxx
- Date: 29 Jun 2006 14:22:32 -0700
Ultimately, I'm trying to keep a running total of how many characters
are in the TEXTAREA. So really, however text can be entered, whether
it's keyed or pasted (context menu, control+v), I want to be able to
get the total.
Randy Webb wrote:
brisco5@xxxxxxxxx said the following on 6/29/2006 4:54 PM:
I have a TEXTAREA element. A user right clicks within in to get the
context menu and they select "paste".
OK, but that is not the only way to "paste". There are at least 3 other
ways.
I want my javascript code to know that they selected "paste".
Do you want to know they selected "paste" from that menu or that they
pasted text into your textarea? The difference in the two is astronomical.
I know you can capture the mouse click, but can we capture exactly what
event that attempted?
Doubtful, depending on what you are really trying to do.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.
- References:
- Detecting which context menu item was selected
- From: brisco5
- Re: Detecting which context menu item was selected
- From: Randy Webb
- Detecting which context menu item was selected
- Prev by Date: Re: Detecting which context menu item was selected
- Next by Date: Re: Calculate while I type
- Previous by thread: Re: Detecting which context menu item was selected
- Next by thread: Re: Detecting which context menu item was selected
- Index(es):
Relevant Pages
|