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.

Javascript TRICK

Discussion in 'JavaScript' started by bratosab, May 26, 2008.

  1. #1
    hey everyone,
    I ahve this small javascript trick i learned, just use it and you could find its usefulness. copy and paste the code below into your web browser in any desired page, and you will be able to edit the page.
    I changed google search to search for rubbish LOL:

    javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0
     
    bratosab, May 26, 2008 IP
    ajsa52 likes this.
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Interesting. Rep added.
     
    ajsa52, May 29, 2008 IP
  3. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #3
    this is a very old javascript trick :p
     
    crath, May 29, 2008 IP
  4. bratosab

    bratosab Active Member

    Messages:
    324
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    THANKS!:D:D
     
    bratosab, May 31, 2008 IP
  5. kevster1

    kevster1 Peon

    Messages:
    747
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #5
    nice trick thanks for sharing
     
    kevster1, May 31, 2008 IP
  6. for_si2003

    for_si2003 Banned

    Messages:
    399
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It is a known old javascript code.
     
    for_si2003, Jun 1, 2008 IP
  7. xlcho

    xlcho Guest

    Messages:
    532
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Does anyone know how to disable this script ?
     
    xlcho, Jun 3, 2008 IP
  8. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #8
    why does it matter... its only on their local machine?
     
    crath, Jun 3, 2008 IP
  9. xlcho

    xlcho Guest

    Messages:
    532
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yep, I'm not worried that someone will 'hack' me, just the kids can be very annoying when then say they did hack me, using this :) Never really tried to stop it, though. So, I was just wondering if someone knows a quick and easy way of avoiding it...
     
    xlcho, Jun 3, 2008 IP
  10. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #10
    one thing you need to learn is that people will say they hack you, thats just a fact of being a web developer :p

    ps: i hacked google using this :D

    Its a default js function, i dont think theres a way to disable it unless you can undeclare the function but that could get messy.
     
    crath, Jun 3, 2008 IP
  11. bratosab

    bratosab Active Member

    Messages:
    324
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #11
    It's just a harmless code, no need to disable.... :)
     
    bratosab, Jun 9, 2008 IP
  12. snugbrimm

    snugbrimm Peon

    Messages:
    420
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #12
    thanks for sharing that, i had never heard of it before!
     
    snugbrimm, Jun 24, 2008 IP