Home >Web Front-end >JS Tutorial >Use JavaScript and registry scripts to right-click to collect selected text on web pages_javascript skills
Two days ago, I found a very good site on the Internet for collecting information (http://wolf.360doc.com).
This website provides a function that allows you to directly save the text you selected. I thought it was amazing at the time. After some research, I found that such a function can be achieved using JavaScript and registry scripts.
The code for the right-click favorite page is as follows (my favorite page is named rightClick.jsp):
Web collection text box