Trouble in passsing form object to javascript from an hyperlink
<pre><code>&lt;a href="javascript:SelectAll(this.form)"&gt;All &lt;/a&gt;
&lt;input type ="button" value ="test" onClick="SelectAll(this.form);" /&gt;


    &lt;script ......&gt;
    function SelectAll(form)
    {
        alert(form); 
    }
    &lt;/script&gt;
</code></pre>

<p>method 1 produce an alert message 'undefined' while 2 method works fine by displaying form object . I'm very much aware that  anchor elements don't have a <code>form</code> property, that references the form , unlike input elements,but is there any alternative way to pass form object using hyperlink or is there any way to style the button to look like  an hyperlink</p>

<p>Thanks </p>
