title: Javascript function parameter to String
body: <p>I have a javascript function which takes a parameter, like:</p>
  
  <pre><code>function getSomething(cat,handler) {
  
        varURI = 'text'+cat;
        document.write('&lt;p&gt;'+varURI+'&lt;/p&gt;');
  
      }
  </code></pre>
  
  <p>What I see in the output is:</p>
  
  <pre><code>text[object Object]
  </code></pre>
  
  <p>How do I get the real textual value of the Object?</p>