Customize RightClick Menu

  • Thread starter rishabhshrivastava
  • Start date
R

rishabhshrivastava

Hi All,
I am using a Web Application and I want to customize Right Click Menu
as following:-

Do Nothing when user does a Right Click.

When user select some text and does a Right Click he/she should have a
option of Copy and Paste.

Any Ideas how can this be done.

Thanks
 
A

Alvaro G. Vicario

*** (e-mail address removed) escribió/wrote (5 Sep 2006 10:23:09
-0700):
I am using a Web Application and I want to customize Right Click Menu
as following:-

Do Nothing when user does a Right Click.

When user select some text and does a Right Click he/she should have a
option of Copy and Paste.

Any Ideas how can this be done.

We might be able to provide better advise if you tell us why you need this
and what you're trying to accomplish. I hope you aren't trying to protect
your source code...

BTW, Mozilla Firefox has a security feature to explicitly avoid what you're
trying to do.
 
R

Randy Webb

Alvaro G. Vicario said the following on 9/5/2006 6:08 PM:
*** (e-mail address removed) escribió/wrote (5 Sep 2006 10:23:09
-0700):

We might be able to provide better advise if you tell us why you need this
and what you're trying to accomplish. I hope you aren't trying to protect
your source code...

BTW, Mozilla Firefox has a security feature to explicitly avoid what you're
trying to do.

And Opera doesn't allow it at all.

Want a customized Right Click Menu that is dependable on the Web? Write
your own browser.
 
R

rishabhshrivastava

Hi Alvaro,
I am trying to protect my Source code but thats not my main
concern.....I also dont want user to Browse Back and Forward using
RightClick Menu.

I just want them to have Options of RightClick Menu which is generated
when we select/highlight a text on a webpage which are Undo, Copy,
Paste, Cut , Delet, Select All etc.

I hope this further expalins what I am trying to do.

Thanks
 
R

rishabhshrivastava

Hi Randy,
Thanks for your Advice...I will let you know once I get around with
what I am trying to achieve. Unfortunately this is the first project I
am dealing with lots of client side scripting so my knowledge is
limited.

Thanks all you folks out there for your suggestions.
 
E

Evertjan.

wrote on 06 sep 2006 in comp.lang.javascript:
Hi Alvaro,
I am trying to protect my Source code but thats not my main
concern.....I also dont want user to Browse Back and Forward using
RightClick Menu.

I just want them to have Options of RightClick Menu which is generated
when we select/highlight a text on a webpage which are Undo, Copy,
Paste, Cut , Delet, Select All etc.

I hope this further expalins what I am trying to do.

[please always quote what you are replying to,
this is not email but usenet,
and so we do not know what it is that it would expalin
what you are trying to do further.]

No, you don't own my browser, so preventing me to use it to the full
extent is an insult and I would, found that, opt not to return to your
site anymore, which could harm your business.
... Browse Back and Forward ...

This is easly done by the BS or alt-leftarrow and alt-rightarrow key
combinations, or the relevant browser icons or menu.

I doubt that many ordinary surfers even know or have ever used the back
function in the rightclick menu.

Yes, some page sequences, like in form submission are compromized when
executing a pageback, however, you should be able to detect that and
prevent the unwanted consequences with your [preferably serversided IMHO]
code.
... I am trying to protect my Source code ...

You cannot protect it but from the coding ignorant,
who would not understand it or have use for it anyway.
If you don't know that now,
your code surely is not innovative enough to be protected.

Since hopefully you have learned al lot of clientside coding by
viewsource viewing otherman's code, don't you feel a slight obligation to
give others the ability to viewsource view your selfprofessed as
important code?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top