2
   

A javascript which lets you change content to pages

 
 
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.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 2 • Views: 4,597 • Replies: 4
No top replies

 
queen annie
 
  1  
Reply Thu 9 Mar, 2006 09:51 am
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.
0 Replies
 
DarkJohn
 
  1  
Reply Thu 9 Mar, 2006 01:44 pm
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?
0 Replies
 
jespah
 
  1  
Reply Thu 9 Mar, 2006 01:57 pm
Heh, wacky.
0 Replies
 
queen annie
 
  1  
Reply Thu 9 Mar, 2006 02:55 pm
DarkJohn wrote:
Has this helped?


Yes! I did it. Cool. Thanks
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » A javascript which lets you change content to pages
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 01/19/2025 at 11:01:26