title: The script does not work in IE. How can I fix it?
body: <p>There is a script that changes the page template depending on the user's monitor screen resolution. However, it does not work in IE. Advise how to fix it, please.</p>
  
  <pre><code>&lt;body&gt;
  &lt;table id="mt" align="center" &gt;
  &lt;tr&gt;
  &lt;td colspan=3 id=top&gt;{{head}}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td id=t1&gt;&amp;nbsp;&lt;/td&gt;&lt;td id=t3&gt;&amp;nbsp;&lt;/td&gt;&lt;td id=t2&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
  &lt;td id=1eft valign=top&gt;{{left}}&lt;/td&gt;
  &lt;td id=content&gt;&lt;h1&gt;[*pagetitle*]&lt;/h1&gt;[*content*]&lt;/td&gt;
  &lt;td id=right&gt;{{right}}&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td id=ft colspan=3&gt;{{foot}}&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;&lt;script&gt;if (window.outerWidth&gt;1440) {a='1440px';} else {a='auto';}document.getElementById("mt").style.width = a;&lt;/script&gt;&lt;/body&gt;
  </code></pre>