title: Access object from script tag
body: <p>I'm writing java script code in script tag in head like:</p>
  
  <pre><code> &lt;head&gt;
       &lt;script language="javascript"&gt;
           object o = new object({....});
       &lt;/script&gt;
   &lt;/head&gt;
  </code></pre>
  
  <p>and trying to use object a in body tag</p>
  
  <pre><code>&lt;body&gt;
      &lt;script&gt;
           alert(o.value);
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>how can i access object from body???
  is their any alternatives? </p>