get value of value attribute usind id in javascript
<p>I want to get value of value attribute using id attribute of html tag. </p>

<pre><code>&lt;p id='abc' value='xyz'&gt;123456&lt;/p&gt;
</code></pre>

<p>and my javascript is </p>

<pre><code>var a=document.getElementById(abc).innerHTML; 
alert(a);
</code></pre>

<p>this gives me alert "123456" but I want alert function should display me "xyz". How can I do these. I also tried getElementById(abc).value this returns nothing.</p>

<p>OR is there ant way to make tag which is doesn't display on browser. I don't want to display 123456 on browser.</p>
