Home  >  Article  >  Web Front-end  >  Make your website editable and implement js code_javascript skills

Make your website editable and implement js code_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:44:211238browse

It’s very simple

1. Open the website you want to hack,
2. Enter in the address bar of the browser:

Copy code The code is as follows:

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

3. Now you will find that his page can be modified freely by you! !
4. After modifying it according to your own intention, enter in the address bar:
Copy the code The code is as follows:

javascript:document.body.contentEditable='false'; void 0

Okay, take a screenshot and "hack" the other party's website~~

Hehe, it’s harmless. It can be used to scare people, which is much more convenient than saving HTML
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