By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,439 Members | 1,322 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,439 IT Pros & Developers. It's quick & easy.

capturing popup-menu item generated by right click!

P: n/a
Hello Group,

How can I capture which option of a popup menu is chosen when user
does a right click on a link?

You have see so many links which lead to a download or ... like: <A>
Download here </ANow if user chooses "Save Target As ..." he can
download the file. I need to find out which option off the list is
chosen?

Thanks,
Amit.

Jul 17 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
amit said the following on 7/17/2006 6:05 PM:
Hello Group,

How can I capture which option of a popup menu is chosen when user
does a right click on a link?
You can't.
You have see so many links which lead to a download or ... like: <A>
Download here </ANow if user chooses "Save Target As ..." he can
download the file. I need to find out which option off the list is
chosen?
Ask the user, otherwise you have no way of knowing.
--
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/
Jul 18 '06 #2

P: n/a

Randy Webb wrote:
amit said the following on 7/17/2006 6:05 PM:
Hello Group,

How can I capture which option of a popup menu is chosen when user
does a right click on a link?

You can't.
You have see so many links which lead to a download or ... like: <A>
Download here </ANow if user chooses "Save Target As ..." he can
download the file. I need to find out which option off the list is
chosen?

Ask the user, otherwise you have no way of knowing.
--
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/

This type of things are possible in application programming, that's why
I thought it would be possible in web development too. However, if
still there is somebody know think there is a possibililty please let
me know it.

thanks again.
amit

Jul 18 '06 #3

P: n/a
amit said the following on 7/18/2006 6:47 PM:
Randy Webb wrote:
>amit said the following on 7/17/2006 6:05 PM:
>>Hello Group,

How can I capture which option of a popup menu is chosen when user
does a right click on a link?
You can't.
>>You have see so many links which lead to a download or ... like: <A>
Download here </ANow if user chooses "Save Target As ..." he can
download the file. I need to find out which option off the list is
chosen?
Ask the user, otherwise you have no way of knowing.

This type of things are possible in application programming, that's why
I thought it would be possible in web development too.
Whether it is fortunate or not is a matter of opinion.
However, if still there is somebody know think there is a
possibililty please let me know it.
If anybody tells you they can, then call them a liar.
Using a custom context menu, sure. Write your own menu to mimic the
browsers and then you can know, otherwise, you can't.

--
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/
Jul 19 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.