1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Edit any website you want right in your browser

Discussion in 'JavaScript' started by reshadat, Jul 29, 2008.

  1. #1
    Hi Guys. Just open up a website in your browser and type the followingcode into your address bar and press enter:

    javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 
    Code (markup):
    Voila!! You can edit the website!!
     
    reshadat, Jul 29, 2008 IP
  2. Sleeping Troll

    Sleeping Troll Peon

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can edit the html and javascript in the page, not the site.
     
    Sleeping Troll, Jul 29, 2008 IP
  3. antimad

    antimad Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It only works on IE,
    didnt work on Opera or Firefox.

    But it is still cool
     
    antimad, Jul 29, 2008 IP
  4. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #4
    ^FF2 does not support that, FF 3 does.
     
    rohan_shenoy, Jul 29, 2008 IP
  5. xlcho

    xlcho Guest

    Messages:
    532
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Old stuff.. still funny though :)
     
    xlcho, Jul 30, 2008 IP
  6. Panzer

    Panzer Active Member

    Messages:
    381
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #6
    This has been posted on DP adleast 10 times already....
     
    Panzer, Jul 30, 2008 IP
  7. desilator

    desilator Peon

    Messages:
    2,220
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Old news and all this does is entice new people to try and scam people when selling domains/websites..
     
    desilator, Jul 30, 2008 IP
  8. yleiko

    yleiko Peon

    Messages:
    74
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yeah, you can fool people,
    "hey look at that, i hacked google"

    i'll try this trick on my girlfriend :D
     
    yleiko, Jul 30, 2008 IP
  9. 2-4-K

    2-4-K Peon

    Messages:
    834
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Well I dont care if its been posted before I have never seen it.. pretty cool.. can think of a few uses when doing screen captures..hah

    good stuff
     
    2-4-K, Jul 30, 2008 IP
  10. comcharan

    comcharan Peon

    Messages:
    390
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #10
    it works on Safari also
     
    comcharan, Jul 30, 2008 IP
  11. timothydalton

    timothydalton Peon

    Messages:
    274
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #11
    well new for me though

    thanks
     
    timothydalton, Jul 30, 2008 IP
  12. Sleeping Troll

    Sleeping Troll Peon

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I have found that if you populate your page via AJAX by sending html in xmlhttp responsetext, creating DOM elements and inserting via innerHTML the html is not visible if you view source! It is present in the DOM and if you have a DOM inspector you can grab it there. I think the average surfer would just wind up scratching their heads though!
     
    Sleeping Troll, Jul 30, 2008 IP
  13. Shazz

    Shazz Prominent Member

    Messages:
    8,395
    Likes Received:
    453
    Best Answers:
    0
    Trophy Points:
    330
    #13
    heh, could be dangerous if its something important :eek:
     
    Shazz, Jul 30, 2008 IP