Questions tagged [oncopy]

7 questions
8
votes
1 answer

On copy hide textarea (JQuery)

When a specific textarea is copied I want it to be hidden AFTER being copied. I have the following code: $('#textarea20').on('copy', function() { $('#textarea20').hide(); }); As you see this will hide it then the browser will try to…
user1685794
6
votes
2 answers

Will the onCopy event help me repair the bullet hole in my foot?

In a huge table of numbers, I made the user's experience "richer" by replacing all of the semi-visible minus signs by –. It looks great, big improvement. I was so busy admiring my cleverness that I forgot to notice the blood on the…
Pete Wilson
  • 8,610
  • 6
  • 39
  • 51
2
votes
0 answers

Copy command not working when using right click copy

I am trying to capture the copy event and update the clipboard with some information. Below is what I am trying, it works fine except when the user tries to copy using the right click -> copy option. Not only does this not work but it also doesn't…
Yasser Shaikh
  • 46,934
  • 46
  • 204
  • 281
1
vote
1 answer

How to make onselectstart enabled only in one div?

I blocked copying and selecting of text and elements on my website: But now I need to enable it in only one div so I tried:
Artimal
  • 651
  • 7
  • 24
0
votes
1 answer

Filter out HTML Tag onpaste for div and oncopy too

I have an editable DIV in my site to send a forum message. People can edit their messages (Bold, Italic, underline, add links and more) But I want when some one paste or drop (- drop is not necessary, but paste it is) their text I want it to go in…
Gama Sharma
  • 51
  • 1
  • 7
0
votes
1 answer

Handle oncopy event after server's response

I want to modify the user's clipboard when he presses CTRL+C based on what the server responds. The communication with the server is done through a web socket. I managed to get the oncopy event and I'm able to set some content to it, but only…
Mihai Varga
  • 88
  • 1
  • 6
0
votes
1 answer

Javascript oncopy select another field text value

I have two input fields as under: Also I have got Javascript code…
Arvind K.
  • 1,184
  • 2
  • 13
  • 27