How To Replace Text On Page Load In Javascript?


OK. So I have a code fragment as below…

ಇದು ನ

Now, I want the & symbol to be replaced with nothing, or in other words I want to delete the & word from that code chunk when the page loads. What is the Javascript that can help me do this?
Many thanks!
SK

, , , ,

  1. #1 by David A at February 8th, 2010




    ಇದು ನ



    BIG NOTE:
    function replace(){
    document.
    getElementById(“replaceThisText”).
    firstChild.nodeValue = “”;
    should all be on one line. Yahoo Answers doesn’t allow me to type the whole thing like that though :(
    Hope that helps!

(will not be published)
  1. No trackbacks yet.
Powered by Yahoo! Answers