Javascript onclick with img is not working on IE10 with HTML 5 enable <p>We have a legacy HTML+JavaScript code which has been written approx 15 years back. We are enabling some of the feature in the code by using HTML5 like as search box etc.</p> <p>While enabling HTML-5, checkbox stop working on IE-10, same code is working on Firefox and chrome. Checkbox functionality has been implemented using tag.</p> <p>Below is the snapshot of the code.</p> <pre><code>function ClickCheckBoxImage (object) { if( !IsDisabled (object)) { SetCheckBoxImage (object, !IsChecked (object)) eval (object.getAttribute ("onchange")) } } Page.prototype.AddCheckBox = function (name, value, onChange, forceNavUpdate, rebootOnChange, isReadOnly, condition) { var checkBox var checkBoxHelper var checked = value.toLowerCase() == "true" var newElement = document.createDocumentFragment() var checkBoxName = name + "checkbox" onChange = (!onChange) ? "" : onChange + ";" if (isReadOnly == null) isReadOnly = false if(userNameglobal == 4) isReadOnly = true onClick = "ClickCheckBoxImage(this);" onChange += 'UpdateDependentRows (document.getElementById(\''+name+'\'));' if (this.autoSubmit) onChange += 'SubmitOnChangeOf (\''+checkBoxName+'\');' if (forceNavUpdate) onClick += 'UpdateNavReloadCB(this);' // Create the checkbox Image checkBox = CreateElement ('&lt;img class="checkbox" '+ ' name="'+checkBoxName+'" id="'+checkBoxName+'" onclick="'+onClick+'"&gt;') checkBox.setAttribute ("onchange", onChange) checkBox.setAttribute ("disabled", isReadOnly) checkBox.setAttribute ("helper", name) SetImageValue (checkBox, checked) checkBox.src = GetCheckBoxImageName (checkBox) this.SetCommonAttributes (checkBox, rebootOnChange, condition); newElement.appendChild (checkBox); // Create the helper checkBoxHelper = CreateElement ('&lt;input type="hidden" id="'+name+ '" name="'+name+'" value="'+value+'"&gt;'); this.SetCommonAttributes (checkBoxHelper, rebootOnChange, condition); newElement.appendChild (checkBoxHelper); return newElement; } </code></pre> <p>Function ClickCheckBoxImage() has been set to onclick. While debugging the issue, It has been seen that ClickCheckBoxImage() is not calling in case of IE-10, but it is calling in case firefox and chrome.</p> <p>Please help me to resolve this issue.</p> <p>Thanks in advance.</p>