Last Updated: February 25, 2016
·
554
· legrandken

Javascript trick that makes content on a web page editable

Here is a nice Javascript trick. Copy and paste into web browser console and all content on web page is editable.

The Code

#!javascript

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

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Related Tags
#javascript
#js
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside