There are different methods for different browsers, divided into event type and attribute type. The sample code is as follows:
1 <html> 2 <head> 3 <style type="text/css"> 4 body{-moz-user-select:none} 5 </style> 6 </head> 7 8 <body onselectstart="return false;"> 9 this is a test!10 </body>11 </html>