473,378 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to handle context menu cancellation event

1
I am trying to implement a system to mask affiliated links
of a web page. I can handle user's right click with
oncontextmenu event and mask the link without any problem
but when user cancels context menu, link value is been
changed.

Expand|Select|Wrap|Line Numbers
  1. link.oncontextmenu = function () {
  2.   link.href = "http://......";          
  3. }
  4.  
I cannot find a way to handle when user cancel context
menu to change link's value into its original value.

Any idea?

Thanks.
Mar 8 '12 #1
0 1037

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Mohit Gupta | last post by:
Hi all, Lately I have been working on an application in VB .net CF for Pocket PC device. I have a small question about Context Menu. When I try to close the window after context menu is poped...
0
by: Paul Talbot | last post by:
Hi, I'm having some difficulty with regards the ContextMenu in C#. I have attached the ContextMenu to an AxBrowser object (Internet Explorer) and have removed the Internet Explorer Context Menu...
1
by: MrNobody | last post by:
If you have a tree view where particular nodes you want a context menu (right click menu) to show? It should only show for specific nodes, which are classes extending TreeNode
4
by: Don Peters | last post by:
I can't seem to find an answer to this problem in spite of many searches. I have a VB.NET program that has a context menu popup event. In it I associate some menu items with their events, as...
3
by: jcrouse | last post by:
Is it possible more multiple controls (labels) to share the code from one context menu. I have 32 labels on a form and don't want to add 32 context menu controls. Where might I find information on...
1
by: Chris Murphy via DotNetMonster.com | last post by:
Hi all, I'm just wondering if any one can help me with this development issue I'm having. I've created a customized treeview control to handle the particular tasks to which I'll be using it. Within...
0
by: Andrew E Chapman | last post by:
I have a simple notify icon with a context menu running in the system tray for an application I have written. When I first click on one of the context menu items the application fails to respond,...
2
by: Lucky | last post by:
hi guys, i'm working on the context menu for the controls. the problem i'm facing right now is like this : i want to use one context menu for more then one controls lets say i want to use one...
2
by: Bry | last post by:
I have a context menu which is shared between a TreeView and ListView control (both controls show the same information, similar to how Windows Explorer works, so it makes sense to use the same menu...
1
by: Griff | last post by:
Hi I have a context menu with several menu items. When the user selects the menu item they want, then I obviously want to identify which menu item was selected. I've managed to handle the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.