Home  >  Article  >  Web Front-end  >  Use JavaScript and registry scripts to right-click to collect selected text on web pages_javascript skills

Use JavaScript and registry scripts to right-click to collect selected text on web pages_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:20:011178browse

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):

Copy the code The code is as follows:


 
The collection page is named SaveMenu.jsp):


Copy the code Web Collection




Web collection text box


🎜>



레지스트리 스크립트는 다음과 같습니다.
코드 복사 코드는 다음과 같습니다.

Windows 레지스트리 편집기 버전 5.00

[HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMenuExt]

[HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMenuExtLocalhost 테스트]
@="http://10.1.1.19:8080/test/rightClick.jsp"


관심 있으신 분들은 직접 해보셔도 좋을 것 같아요!
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn