Why is it not possible to access elements via JS on this site?
<p>The website I'm talking about: <a href="https://sephir.ch/vfi/user/lernendenportal/index.cfm" rel="nofollow">https://sephir.ch/vfi/user/lernendenportal/index.cfm</a></p>

<p>I wanted to make a simple bookmarklet which fills my email and password into those two textboxes. My JS code works on any other site, but not on this one. </p>

<p>HTML:</p>

<pre><code> &lt;input type="text" name="email" size="40" maxlength="60" class="tdschwarz" autocomplete="off"&gt;
</code></pre>

<p>JS:</p>

<pre><code> javascript:function fill() {alert(document.getElementsByName("email")[0].value);} fill();
</code></pre>

<p>Error:</p>

<pre><code> Uncaught TypeError: Cannot read property 'value' of undefined 
</code></pre>

<p>Do you guys have any ideas why it doesn't work? Thanks in advance.</p>
