Too much recursion
<p>can anyone tell me where the loop comes from?</p>

<p><strong>JS:</strong></p>

<pre><code>if (zahl &gt; 1) {
    document.getElementById('makroclickm2').innerHTML = data_split[zahlm2];
    document.getElementById('makroclickm2').onclick = getwords(zahlm2++);
}
else {
    document.getElementById('makroclickm2').innerHTML = "";
    document.getElementById('makroclickm2').onclick = "";
}

if (zahl &gt; 0) {
    document.getElementById('makroclickm1').innerHTML = data_split[zahlm1];
    document.getElementById('makroclickm1').onclick = getwords(zahlm1++);
}
else {
    document.getElementById('makroclickm1').innerHTML = "";
    document.getElementById('makroclickm1').onclick = "";
}

document.getElementById('makroclick').innerHTML = data_split[zahl];
document.getElementById('makroclick').onclick = getwords(zahl++);

document.getElementById('makroclickp1').innerHTML = data_split[zahlp1];
document.getElementById('makroclickp1').onclick = getwords(zahlp1++);
if (typeof(data_split[zahlp1]) == "undefined") {
    document.getElementById('makroclickp1').innerHTML = "";
    document.getElementById('makroclickp1').onclick = "";
}

document.getElementById('makroclickp2').innerHTML = data_split[zahlp2];
document.getElementById('makroclickp2').onclick = getwords(zahlp2++);
if (typeof(data_split[zahlp2]) == "undefined") {
    document.getElementById('makroclickp2').innerHTML = "";
    document.getElementById('makroclickp2').onclick = "";
}
</code></pre>

<p><strong>HTML:</strong></p>

<pre><code>&lt;div id="makroclickm2" onclick="" class="makroclick"&gt;&lt;/div&gt;
&lt;div id="makroclickm1" onclick="" class="makroclick"&gt;&lt;/div&gt;
&lt;div id="makroclick" onclick="getwords(0);" class="makroclick_center"&gt;&lt;/div&gt;
&lt;div id="makroclickp1" onclick="getwords(1);" class="makroclick"&gt;&lt;/div&gt;
&lt;div id="makroclickp2" onclick="getwords(2);" class="makroclick"&gt;&lt;/div&gt;
</code></pre>

<p>(Not complete Code)
The function is called once onload.</p>

<p>Thx in advance!</p>
