JavaScript: Accessing Nested Objects
<p>Here is the problem.The code looks like this</p>

<pre><code>function Scripts() {this.FindById = function (id) {
    this.FindById.constructor.prototype.value = function () {
        return document.getElementById(id).value;

    }}}
</code></pre>

<p><code>var Control = new Scripts();</code></p>

<p>Now when i say Control.FindById("T1").value(). I am not able to get the textInput("T1")'s value. Please help me out it's quite urgent.</p>
