firefox onclick event
<p>This onclick function:</p>

<pre><code>VVi".$row['id'].".onclick = function() {
   alert('1');
   var ResultI = '".$row['id']."';
   location.href='visuals.php?ResultI=' + ResultI + '&amp;pg=' + pgi + '&amp;vid=false';
};
</code></pre>

<p>Cannot be called on firefox... I tried it on chrome and opera, and everything worked fine... So how can i call the function that everything would work fine on all browsers. I need similar method, because i dont want related codes to get effect... Thanks</p>

<p>Edit:</p>

<p>Firefox result:</p>

<pre><code>&lt;a class='menuLink' id='VVi19'&gt;
&lt;div id='IIi19' style='width: 230px;
height: 136px;
background: url(res/images/images.jpg);
background-size: contain;
background-repeat: no-repeat;
background-position:center;'&gt;&lt;/div&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;script type='text/javascript'&gt;
VVi19.onclick = function() {
    alert('1');
var ResultI = '19';
location.href='visuals.php?ResultI=' + ResultI + '&amp;pg=' + pgi + '&amp;vid=false';
     };
&lt;/script&gt;
</code></pre>
