How to make an HTML code box?

Discussion in 'HTML & Website Design' started by Warpath, Jul 5, 2009.

  1. #1
    How do I make something like this in HTML:

    [​IMG]

    I want it so that when I click inside the box, everything automatically gets copied as such.

    Thanks
     
    Warpath, Jul 5, 2009 IP
  2. Warpath

    Warpath Banned

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anybody know?
     
    Warpath, Jul 6, 2009 IP
  3. unblocker.net

    unblocker.net Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try this

    <form name="copy">

    <div align="center">
    <input type="button" value="Highlight All" onclick="javascript:this.form.txt.focus();this.form.txt.select();"><BR>
    After clicking the "Highlight All" button, hold the "CTRL" key on your keyboard and press "C".<BR>
    To insert the link code to your website's index page source code, hold the "CTRL" key and press "V".
    </div>
    <textarea name="txt" rows="2" cols="70" wrap="VIRTUAL">
    <b>your codings here</b>
    </textarea></form>
     
    unblocker.net, Jul 6, 2009 IP