How to tell what is inside a Javascript object
<p>I have an object.  If I just do an alert on it, it shows this: [object HTMLInputElement] but doesn't show the value.  If I do this</p>

<pre><code>document.getElementById('rout_markers').value
</code></pre>

<p>then it shows nothing.  Does that mean it isn't set at all?  Whats the best way to check if it is null?</p>
