Reply
Thu 9 Mar, 2006 09:06 am
Just thought I'd share this little trick with you, it allows you to change pretty much anything on a website without going into the source etc..
Put:
javascript:void(document.body.contentEditable=true)
into your address bar and get editing!
To relock the page, just change "true" at the end of the code to "false".
When you refresh the page, the original content will be there, the effects from this code are not perminent! Just good for a laugh!
If you want to Boldify some text highlight it and press CTRL and B
same with underline and italics, just change the B to I or U.
I'm only just getting into javascript--although into webpages via HTML and CSS for several years...
I tried what you said--but nothing happened. So forgive my dumb questions, please:
Any browser? I use firefox. I opened Explorer and did the same, but had no web page previously loaded so nothing happened (I guess that's why).
Thanks for the help in advance.
Well I'm not amazing at javascript, i just know a few tricks!
I know this code works on IE (v.6), i dont think it does on Firefox thought as i think i may have tried it before.
Follow these instructions and hopefully itll work:
On this page copy and paste the code i wrote previously, here it is again:
javascript:void(document.body.contentEditable=true).
(You may notice the page jump abit on some sites)
Move your cursor over to where it says "A javascript which lets you change content to pages" and click the mouse. There should be a flashing type curser there, begin to type and it should write it to the page!
Has this helped?
DarkJohn wrote:Has this helped?
Yes! I did it. Cool. Thanks