topical media & game development

talk show tell print

professional-javascript-11-SelectTextExample3.htm / htm



  <html>
      <head>
          <title>Select Text Example</title>
          <script type="text/javascript" src="formutil.js"></script>
      </head>
      <body onload="FormUtil.setTextboxes()">
          <input type="text" size="12" id="txt1" value="initial value" /><br />
          <input type="text" size="12" id="txt1" value="another value" /><br />
          <input type="text" size="12" id="txt1" value="yet another value" /><br />
          <input type="text" size="12" id="txt1" value="and another value" /><br />
          <p>Try clicking or tabbing to each textbox. All the text will be selected.</p>
      </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.