JavaScript using text field content as js function param
<p>I'm sure this has an easy answer, but I don't know it.</p>

<p>so I have a widget that will let you get alerts texted to a phone. I am trying to store the info, but I can't get the user's input into my javascript function shown below:</p>

<pre><code>    onClick="collect('info', 'nname=' + document.getObjectByID('Nname').value + ';num=12345;
</code></pre>

<p>How can I get the content as a string of a text field and use that in my function? Like I said, this is probably a relatively easy question for most, but I cannot figure it out :/</p>
