Results 1 to 5 of 5

Thread: Enter code in address bar to be able to edit the page

  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Enter code in address bar to be able to edit the page

    What is the code you enter into the address bar of any site to be able to change the html content within the site? I cant remember if it had anything to do with DHTML or JAVA or HTML. Any help would be greatly appreciated.


    Im trying to prank a buddy of mine.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Javascript can do this, but it depends upon what you want to change it to. The change will only be temporary.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes. I was looking for the code that does this. It defaces a site page. Im trying to do it as a prank to someone but cant find the code that does it.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You can do something as simple as:

    Code:
    javascript:document.write('Who\'s Your Daddy?')
    Paste that into the address bar, hit enter, and the page will disappear, replaced by:

    Who's Your Daddy?

    But, as I say, it really depends upon what you want to have happen. Further, the code could be obfuscated, so that it would be less obvious what the result would be:

    Code:
    javascript:document.write(unescape('%57%68%6f\%27%73%20%59%6f%75%72%20%44%61%64%64%79%3f'))
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I believe he was looking for the design mode and content editable on, saw something recently like this and navigated to it.
    Code:
    javascript:document.body.contentEditable%20=%20'true';%20document.designMode='on';%20void%200
    Like John said, this is temporary. It only makes the whole page a giant text editor.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •