Javascript trick to edit the page displayed

Goto any website and paste

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

in the address bar.

Now you can edit anything in that page. Really cool trick.


10 Responses to “Javascript trick to edit the page displayed”


  1. 1 Vincent

    Really cool :D
    I used it to trick my brother into thinking his website was hacked.

  2. 2 Nice trick

    Nice trick its easy it dosent really hack the site though :D

  3. 3 Anjan

    Really cool trick dude..
    i used this trick to edit the existing page to make prototype of my portal..

  4. 4 sanjeev

    How do you change the pictures on the website though?

  5. 5 sanjeev

    Can we also change the pictures on a website?

  6. 6 Abhinav

    it’s really cooooooooooooooool

  7. 7 qwerty

    how do you save the changes

  8. 8 cnu

    @qwerty
    You can save the resulting page as html file on to your disk. Unfortunately you cannot save the changes onto the server (if that is what you asked). That is the point of javascript.

  9. 9 cody

    Lol, i used this on my school grades site to trick my mom so i wouldent get grounded

  10. 10 lol cool

    lol i wish u could save these it would be so hilarious. i have a million things i would do with this if u could XD

  1. 1 Facebook Mahabharatha « Doing Jalsa and Showing Jilpa

Leave a Reply