They oncopy can apply in text box, <div> tag, <img> tag, <p> tag and etc..
Syntax of HTML oncopy event
<input type="text" oncopy="call_function()" value="value of text box">
Example 1
<p oncopy="cpy_fun()">
Try to copy this the function will call
</p>
Example 2
<input type="text" oncopy="cpy_fun()" value="try to copy">
Example 3
<div oncopy="cpy_fun()">
This div element can have any text and any styles, but try to copy
</div>
Example 4
<img src="image path" oncopy="cpy_fun()">
Example Program:- (Editor)
Editor is Loading...
Advertisement
0 comments:
Post a Comment