How to disable copy and cut in TextBox?

后端 未结 5 1744
不知归路
不知归路 2021-02-10 06:43

In my webpage I want to disable copy and cut option in context menu on textbox.

5条回答
  •  粉色の甜心
    2021-02-10 07:18

    Not sure if you're looking for a non asp way but I just found out about on cut method in JavaScript. Do the following for your input:

    
                    
                    0
                  
                       
                    
                   讨论(0)
                  
                                                      
                  
                  
提交回复
热议问题