title: javascript this.value doesn't work?
body: <p>sorry for asking that stupid:D However what did i do wrong here?</p>
  
  <p>html:</p>
  
  <pre><code>&lt;div onclick="prompt()" value="test"&gt;test&lt;/div&gt;
  </code></pre>
  
  <p>javascript:</p>
  
  <pre><code>function prompt() {
  
      var error = this.value;
      alert("sdsd");
  
  }
  </code></pre>
  
  <p>Thanks!</p>