Having two tabs to the same website crashes javascript
<p>I have a javascript function that searches for an element by Id </p>

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

<p>and when I have multiple tabs opened to same website but not same page the script looks for the element on the wrong tab. Does anybody know a way to search for an element by a specific browser tab?</p>
