topical media & game development

talk show tell print

basic-web-html-12-ch12-eg03.htm / htm



  <html>
  <head><title>The replace() method</title></head>
  <body>
  <p>Replacing character strings:</p>
  
  <form name="myForm">
  
    <textarea name="myTextArea" id="myTextArea" cols="40" rows="10">I am interested in Curl, here is a url for it.</textarea><br /><br />
  
    <input type="button" value="Replace characters URL" onclick="document.myForm.myTextArea.value =document.myForm.myTextArea.value.replace(/\burl\b/gi, 'abc');">
  
  </form>
  
  </body>
  </html>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.