finding and replacing text on a web page

Discussion in 'JavaScript' started by nhoss2, May 19, 2008.

  1. #1
    is it possible to find and replace text on a web page? if it is, how would you replace the word "helloworld" with "1" and ".com" with ".net" . the replace is global so it would replace all "helloworld"s and ".com"s in the web page. if you need more information please ask, im not good at explaining.
     
    nhoss2, May 19, 2008 IP
  2. angeleyes20

    angeleyes20 Banned

    Messages:
    296
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can copy the text to like a editor(i.e dreamweaver CS3) use the find, enter the text you want to find, and fill in the replace with text box and hit replace all, repeat for all words and your done. then copy the new text to the file using the means you plan to edit it with to begin with, then save and your done.

    :)
     
    angeleyes20, May 19, 2008 IP
  3. nhoss2

    nhoss2 Peon

    Messages:
    310
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    oh, my web page is dynamically produced so i cant actually do that.. thanks for replying
     
    nhoss2, May 19, 2008 IP