title: Using same variables in JavaScript and HTML
body: <p>I am trying to use my variables I created in the JavaScript  part of my document outside of named document. Like this:</p>
  
  <pre><code>&lt;script&gt;
  var Number = 1;
  var Number2 = 2;
  var Result = Number 1 + 2;
  &lt;/script&gt;
  
  &lt;p&gt; Result &lt;/p&gt;
  </code></pre>
  
  <p>To be more precise I would like to use the variable I created in the Script in an table. Like this:</p>
  
  <pre><code>&lt;table class="tabelle"&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;script&gt; Result &lt;/script&gt;&lt;/td&gt;
      &lt;td&gt;Text&lt;/td&gt;
      &lt;td&gt;Text&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Text&lt;/td&gt;
      &lt;td&gt;Text&lt;/td&gt;
      &lt;td&gt;Text&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I tried it by marking a new script area in my table, but this doesn't seem to work. I hope you can get the basic concept of my problem.</p>
  
  <p>Further: I thought I might create some global variables in HTML AND JavaScript but I wouldn't know how.</p>