All I get is the images name not the file tree like
C:/document/picture/dangit.gif
Okay, I need to add more text for some reason because stack overflow thinks that I should type more then I need to type so just ignore this text this is so retarded.
<html>
  <head>
    <script>
      function getData() {
        var text = document.getElementById("textarea").value;
        var text = text.replace(/\r?\n/g, "<br />");
        document.getElementById("display").innerHTML = text;
      }
      function picture() {
        var picture = document.getElementById("picture").value;
        document.getElementById("pDisplay").src = picture;
        document.getElementById("purl").innerHTML = picture;
      }
    </script>
    <title>Gettings a textbox formatting</title>
  </head>
  <body>
    <textarea id="textarea" onkeypress="getData()" autofocus></textarea>
    <p id="display">You havnt typed anything yet</p>
    <input type="file" id="picture" />
    <button onclick="picture()">get the picture from the box</button>
    <p id="purl">picture url</p>
    <img id="pDisplay" />
  </body>
</html>
 
     
     
     
    