Save 25% on our pro plugins with coupon code: SPRING2023
Web Dev + WordPress + Security

Use Your Browser to Edit Any Live Web Page Using a Single Line of JavaScript

This was just too juicy to pass up. Blogstorm recently blogged about an easy JavaScript technique for making any website editable. After checking it out for myself, I just had to share it here at Perishable Press. Here it is:

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

Paste that single line of code into the address bar of any modern browser and have fun editing the page. Obviously, any changes will only apply to the page as seen in your browser, not the original document. Even so, it’s a fun trick to play around with, snap screenshots, be creative, etc.

Go ahead — amaze your friends!

Jeff Starr
About the Author
Jeff Starr = Designer. Developer. Producer. Writer. Editor. Etc.
GA Pro: Add Google Analytics to WordPress like a pro.

2 responses to “Use Your Browser to Edit Any Live Web Page Using a Single Line of JavaScript”

  1. Hi Jeff,

    Cool trick! I do that with Firebug all the time, which not only lets you edit text, but everything (but you already know that, of course, just letting the other readers know). And I use it often to make that field on the adwords keyword tool a lot bigger than it is (3em height only).

    The only thing I didn’t use Firebug for, is to amaze my friends. Thanks for the idea! I’m going to be so cool now! 8-D

  2. Avatar photo

    You already are cool, Tony! ;)

Comments are closed for this post. Something to add? Let me know.
Welcome
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
GA Pro: Add Google Analytics to WordPress like a pro.
Thoughts
Excellent (and free) tool to test your site's SSL configuration.
Plugin updates! All of our free and pro plugins ready for WordPress 6.2.
Daylight savings is a complete waste of time and needs to be eliminated.
Got a couple of snow days here in mid-March. Fortunately it's not sticking.
I handle all email in real time as it comes in, perpetually clear inbox for years now.
Added some nice features to Wutsearch search engine launchpad. Now 21 engines!
.wp TLD plz :)
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.