Change or Edit any Website inside Browser -JavaScript Hack !!

How would you feel if you could change any web page from within your Browser , just let your imagination run wild and think of what fun it could be, for example you could change your online results to show you as highest scorer in college or make your adsense earning look in millions ( Now Stop imagining !) Let’s do it .

1) Open the  the web page you want to edit.


2) In the browser’s address bar, paste this code:

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

3) Now click on the part of the page you want to edit and start changing, deleting and adding text/image .

When you are done , I would not mind you posting your creativity down here in comments (screenshot or something !!)

About author
Computer Science Engineer by Education & a Programmer, Entrepreneur , Photographer by hobby & Passion who spends most of his time with his Computer/Mobile or his Camera - a Rebel t2i .
101 total comments on this postSubmit yours
  1. what is this is it hacking. dont lie ever. it is not possible through this

  2. this code works,,but we canmt save the changes made by us in the website,,,
    if u have any idea ,,,just tel me how can i save the save the changes…thata i made

  3. vvvvvvvvvvvvvvvvvvvvvvvvvv

  4. sssssssssss

  5. this works but u cant save the changes! :(

  6. How do u save the changes?

  7. You people are idiots!! Of course you can’t save it. You dumb asses.

  8. It’s possible to save the changes using another trick : ;)

  9. this is basic javascript injection hacking.
    for those of you questioning how to “save your changes” I would simply reply that if you don’t know enough javascript, you have no place making any amateur attempts. Along with that, this site has given the implication that this level of hacking is “fun” and “carefree.”
    That is a disturbingly childish take on the matter. If you don’t have the maturity to use your skills responsibility, you don’t deserve them. Of you looking into how to save your changes, have you questioned the reprecautions? No you have not for they don’t have anything to do with you. I bare witness to the common characteristic of highschool freshmen as you do something “cool” and “badass” because you’re “fearless” and “edgy.” I am glad that the author didn’t hand out any dangerous information, but let this be a lesson for all you “cool” prepubescent children. I know you think, “it’s only a website,” but your illegitimate understanding of the inner workings of not only the anthropology, but economy of the internet, misguides you.

    So again, before asking “how do you save the changes?” perhaps you should ask yourself if it’s really worth it? Their is a difference between a soldier and a child with a gun. It is the same with hackers and you all.

  10. Yea..I guess Accendrez is rite….Why try to edit n save someone else’s hardwork??? im positive that i wont like anyone who messes with my site.!

  11. wow.. umm.. maybe he meant “repercussions” not “reprecautions”? “bear” witness.. for God’s sake, wrong “there”

    I might BE a soldier with a gun, but I know proper grammar and spelling.. good job Mr. “I-know-how-to-use-words-I-don’t-understand”

  12. @accendrez
    Tools like “Live Website Editor” ( ) help you persist the state of modified web pages, but the changes only affect your browsing sessions, not others.
    It’s not some badass-carefree-illegitimate-hacking :)

    Though it can be fun, it is also very handy for these types of people:
    - browsing users who’d like to do some minor visual changes (ie: change some text in the google homepage)
    - people who make screenshots of webapps, for ensuring that real data won’t be displayed in presentations


  13. Have you ever heard of windows screenshot? When you visually edit the webpage, take a screenshot, save as a jpg and post it here.

  14. The save the changes bit might have something to do with a site that trains hackers… it’s a legal hacker training ground and one of the missions requires the saving of such changes. ^_^

  15. Please, can you PM me and tell me few more thinks about this, I am really fan of your blog…gets solved properly asap.

  16. lolLOLOOOOOOOOLLLL @ Accendrez
    dont worry everyone, he’s just another 100% NOOB on the hacker scene.


    what am i saying?
    the guy has no idea what he’s talking about.

    economy of the internet? dude, wtf…

    this is an f’in joke kid. get a life. this is javascript is javascript. if u have no idea what it does “oh he wants to save it u dont understand i am zen i am jedi i am 1337 h4xx0r” then please stfu.

    this… really pisses me off…

    for all ye ppl who dont know what true haxxordom is, go to phrack.
    if u cant do that, kill urself. using a web browser while not understanding the finesse of search engines (viz. mainly google) may maim or seriously injure you.
    see? that made sense. i know “big” words too. u just make me feel wierd, soo nooby, never seen anything like it…

  17. cool

  18. i did try it did not work

  19. It sure works, tested in opera 9+ and Firefox 3+ versions and should work in other browsers too

  20. I definitely think that this is for a fun..sure it works…but who wants to perma-change a website that developers and code specialists made by hours of hard work?????? if u wanna do so……consult a doc….seriously…hw wud u feel if ur site was renamed hoobalo instead of yahoo??!!!!!

  21. in meinem RSS-Reader ein. Help me, please

  22. Tricked my teacher into giving me A’s

  23. @Levi Nice use of this trick buddy , will love to see some more impressive uses

  24. I turned all my grades to A’s, B’s, and C’s from the original grades I got for messingaround and not doing homework. I only changed it for my parents because we all know, or we should, that it doesn’t get saved. I’ve used this trick before for messing around with friends in school and one time convinced an administrator that local fox news reported that his son had been arrested for drug possession and resisting arrest. I wrote an entire article on the site and watched him run out of the room looking pissed as hell. Childish I admit, but useful for getting school personnel off your back.

  25. 2->Goran , Clever use I must say, It must had been fun doing that , I tried something similar with my friend’s marks in the college end semester exams and It was fun .

  26. i tryed it, i couldnt get it to do anything. lets see, i went to the site. deleted what was in the address bar, then pasted the code. nothing happened and i couldnt change anything. can somone please help me.

  27. it dosnt work WFT!!!!!!!!!!!!!!!!!!!!

  28. GreenOrange and Accendrez, now thats scary……………. the trick faire to play with around kids!

  29. I have used this once!

  30. o.O
    i dont even remember writing this. actually.. i do. let me make something clear:


    this is just changing what you, ie, the client, sees.

    simple dimple. ;)

  31. Yes GreenOrange@JoeWilliamTurner , but this is about modifying the default behavior and tinkering into stuff which can be called a hack .. and the process Hacking :)

  32. Related Story, twitter got passwords stolen on sunday. I guess no site is uncrackable.

  33. You have to press enter? copy, paste and enter ._. if you dont know that or you somehow fucked up the code, your loss

  34. acually you can save it. how do i know? think of it as my misspent youth ^_^! cant remember how but im sure you can google it or something…

  35. To save it press file save as and put .html

  36. @Matt you cant save the modified page, the modification is done in the DOM and so the browser does not know how to save it ..

  37. Hi, I found this article while searching for help with JavaScript. I’ve recently switched browsers from Safari to Internet Explorer 7. Now I seem to have a issue with loading JavaScript. Every time I go on a website that needs Javascript, the page freezes and I get a “runtime error javascript.JSException: Unknown name”. I cannot seem to find out how to fix it. Any help is greatly appreciated! Thanks

  38. @Vivek Actually, I just tested (Firefox 3.6), if you choose “View Page Source” from the context menu, it shows the modified version… At least after you leave the design mode via:

    javascript:document.body.contentEditable=’false’; document.designMode=’off’; void 0;

    I surely bet you can copy and paste the “source code” into a new HTML document (notepad is your friend) and save it as page.html, so you can view it later on.
    And well, I guess the only use of that trick is to impress people, nothing else… (be creative ;-) )

  39. it works for every bloody website its just that i can’t save it on line so if any one knows how to do so, kindly fil me in

  40. You obviously cant save the changes to the real website because youd be arrested faster then you can read the javascript code.. lol

  41. JavaScript:document.body.contentEditable=’true’; document.designMode=’on’; void 0

  42. I didnt pay my phone bill for a month and went to my cell phone companys website and change my page as if i paid it. then printed it out. i then went into my cell phone company and bytched at them for not updated my payment and the changed it!!!!!!!!!!

  43. Well Handsome1, this is misuse of this kind of technique, you can use it as a prank or for fun , but please dont do this illegally , I beg you to acknowledge your social & moral responsibility and not repeat such act in future & so do all others reading this technique..Please..

  44. If you are using Google Chrome, here is a nifty extension that allow not only to edit any web page of any website, but also saves it for any time you choose to return to the page. Yes you read it right: changes persist.

    Its name is “Live Website Editor” and can be found right here:

    You’ll find a 40′ seconds demo on the extension page as well.

    What do you think?

  45. Thanks @Arnaud , that was a nice tip & chrome is for sure a great browser

  46. pls i will like to learn much from you

  47. lol I made a great one. Got my wife really pissed off at me though. I do not recommend this to any of us married folk.

    Went to the lottery website and changed the winning numbers to the numbers on our ticket. Told the wife to check the numbers and she freaked out and started screaming for joy and almost called to quit her job. I had to put a stop to that so I refreshed the page and now she hates life and me. lol I don’t recommend this. She may be conjuring up a divorce now lol.

  48. I can always use another javascript hack. Thanks!

  49. Arnaud do you smoke crack live website can only mess with the page yur on.Guess thats what crack does to the brain.

  50. Only a java trick and notthing else.
    we cannot make any changes through

  51. please help me! how to save website with changes……..

  52. wish i knew

  53. it doesint stay


  55. very good

  56. More importantly, how do you make the edits stay, and how do you make the site usable again? I tried:

    JavaScript:document.body.contentEditable=’false’; document.designMode=’off’; void 0

    but that didnt work :(

  57. i did not work for me how do we save it?

  58. u cant save it

  59. its only so if you were taking an online test you could change your score if you just had to walk up and show your score

  60. ya!!!its mo=ind blowing…
    i like it..
    plz send all tricks on my email id..
    i am very thankful to you…

  61. changed my grades

  62. hey..Just tell us how to save the website after changing?

  63. Um ppl you can’t save the website on server. U r editing ur own local displayed copy inside ur browser. U can save it on disk by File->Save As, but nvr on serv. Ya wished to hack websites so ez, right? :)


  65. its good for amateurs to play around with. but for pro like me its a FAIL … ;-)

  66. someone please help me this didnt work im on a mac is that the problem? all that showed up when i hit enter was “the page your looking for can not be found”

  67. Hey! this is really good post! I really enjoyed reading it. I will bookmark this site to return later. Looking forward to it. Thanks!

  68. just so you know the edeting that you do with that code can not be saved (unless your a lvl 3 hacker) what the code does is basicly screenshoting the site your on and transfering it to a picture on a microsoft document. and the words in the code themselves mean nothing you have to paste the exact code from above, but in the end thers no point unless your trying to fool someone in to thinking you can edit anysite.

  69. you can save it change the code to
    javascript:document.body.contentEditable=’false’; document.designMode=’on’; void 0

  70. Okay in order to turn it of you just reload the page. Also, you can’t save it so it shows up to everyone i found it fun to edit ppl’s facebooks then screen shot them and send it to there phone that way if they aren’t on facebook then they will be going crazy like OMFG CHANGE IT CHANGE IT esp. if you put some funny stuff up there!

  71. HI..

    this is a trackback..

  72. You should edit peoples tweets and get a good reaction out of everyone. hahahaha

  73. what we change can we make it permanent?

  74. This is just to make changes that appears to you..

  75. oh ok thx dude becouse if it was permanent i would oblitirate

  76. I’ve done this many times before, I tried to hack millsberry, but it didn’t save. Some people say it only works with firefox 3.0, not 3.6. I downloaded firefox 3.0, 3.01, and a whole bunch of other ones like Firefox 3.000211. Didn’t work. It worked, but It can’t save.

  77. LOL this would make an sweet April Fools prank!

    Especially for a facebook page!


  78. just to clear things up, it’s not gonna change the website itself so no you can’t save the website like that. it’s good for pranks more or less. all the code does is copy the webpage and let you make edits on the copied version of the website. it’s kinda like copying the web page and pasting it in mspaint.

  79. cool but how do you save it? email answer to

  80. you can save it with Ctrl+S and open the file later.

  81. hey i have done all the above but i m unable to save the page………… tell me how to do that………………. even i wanna knw more abt it…………….. suppose i have done the changes and i want people from all over the world to see the same web page as the same i have editted then what sud i have to do………………………………….. if anybody knw abt it then kindly mail me at hope to hear back from some1 soon. i will be very grateful to him.

  82. haha.. this trick is old now.. still, it fun to do it on a website. btw, YOU CANNOT SAVE WHAT YOU EDIT. please, don’t keep asking the same question about how to save bla bla bla….

    but, you can print@save or take a print screen as a “proof”. cheers!

  83. @Pankaj , It’s not possible dude , You cant save the changes , Yes you can take a screenshot but saving it is a bit tricky & moreover there’s no way on earth that you can make all people see your edits , unless you own the website or you are a top ace hacker :)

  84. I knew it the other way. Using source option u can do this in any browser. For example in opera u open a page then right click and select SOURCE. Now Just select the required text and edit it. Click on apply changes after u finish. This does the job . now u wil c the same page changing as per ur changes. But this trick u showed above is really good . Point to be noted is that everyone is not a java expert to remember the cammand.

  85. can anyone tell me how to view private album at friendster? thanks in advance…

  86. awesome!!!! i tricked my mom into thinking she won a contest!!!!!

  87. that would be awesome savin that

  88. Here’s an idea.

    Hate someone? Start a message with them on facebook, let it go on until you have something good to work with. Edit what they say so they are being hateful and you’re trying tell them to cool out and cursing people is bad. It’ll fuck some shit up :D

  89. You can’t save it you morrons !

    you take a screenshot of the changes, and use that.

    DUH ?!

    I’m using the macbook but it isn’t working…
    I put in this code JavaScript:document.body.contentEditable=’false’; document.designMode=’off’; void 0
    then do i press enter or not? then do i just edit however?

  91. You, just have to open the webpage you need to edit and then while you are on it , just copy paste the javascript code given in the article into the address bar of that webpage replacing the url of that page and then press enter , nothing will change but now when you move your mouse over text/image on that webpage you can see a cursor and then you can type in words or delete them , have fun !

  92. okaaaaaaaaaaaaay,
    but how to save the page webpage.

  93. Is this not working because I’m using a cell phone?

  94. hello my sister wrote jamb examination tree terms but she fail what am saying here how can i enter the website to change her examination result pls some one should help me with that trickz

  95. nice post really

  96. Just tell us how to save the website after changing?

  97. This won’t work for me :(

  98. Open notepad and leave it open. Open your target web site in your browser. In the browser , do a “View Source”. Copy everything ( all the source code) and paste it in your notepad session. Edit the text in notepad to make your changes. Do your SAVE in notepad. Save it on your desktop, to make it easy to find. Rename the file to TEST.HTML. Close Notepad and your browser. Double click TEST.HTML on your desktop. Viola! – it is saved on your local machine. You cannot save it to someone elses web server, unless you have FTP permissions on the web server.


  99. Or you could download a firefox plugin like “Web Developer” or “Firebug” & modify from there.

    I’m sure google has an alternative text editor.

  100. Here is how to save the edited web page.


    In Internet Explorer 8

    Example: Go to
    When the page is opened,
    paste the following into the address bar, replacing “”, with the javascript “JavaScript:document.body.contentEditable=’true’; document.designMode=’on’; void 0″ .
    Click your “Enter” button on your keyboard.
    You might notice a slight change in the web page as Internet Explorer is now in editing mode.
    Scroll down the web page and right click on a picture.
    Click the “Copy” in the drop down menu.
    Scroll back up the page, and left click directly below the text which says “Listing of Search Engines”
    Without moving the mouse, right click, then click the “Paste” in the drop down menu.

    This is the part that shows you how to save the edit.

    Click “Tools” in the toolbar at the top of the page.
    Scroll down to “Developer Tools” and click.
    Press and hold the Control “Ctrl” Button,
    Press the “S” button.
    Release the “S” button.
    Release the Control “Ctrl” button.
    In the text box “File name:” type the following “test.htm”.
    Click the “Save” button.

    There it is done.

    To see your work, go to the directory that you saved the file “test.htm” into and right click on the file “text.htm”. In the drop down menu mouse over “Open with” and move the mouse to whichever browser that you decide to use to verify your work. You can edit in Internet Explorer, then view work in FireFox to check compatibility.

    Everyone must learn. No one starts out knowing how to code.

    If you are having a difficult time learning how to write web pages, use this script and practice making changes to web pages which you have saved on your own hard drive and examine the differences. You can use this script to copy parts from one page and paste these parts to another web page. Then you can examine the source code to speed up your own learning process.

    Remember, those dim-wits that claim to be super coders are simply following someone elses rules. They had to learn. They are no smarter than you. They simply claim to be. You can learn to code as well as anyone else.

  101. Oops.

    The web site in the example to be edited is .

    Example: Go to “”

    When the page is opened,
    paste the following into the address bar, replacing “”, with the javascript . . .

Submit your comment

Please enter your name

Your name is required

Please enter a valid email address

An email address is required

Please enter your message

People Found this Page by Searching Any of the Following in Google :

 javascript edit code,  javascript code to edit websites,  how to hack a website and change it,  javascript change website,  how to change a website with javascript,  javascript website edit code,  change any website,  website changer,  javascript to change website,  how to change any website

TechStroke © 2014 All Rights Reserved

Powered by WordPress