Javascript compatibility issues (code works in FF but not in Opera and Chrome)
问题 I have a code in Javascript as follows... var btnOK = document.getElementById('btnOK'); btnOK.style.visibility = "visible"; var iframeControlObj = document.getElementById('iframe'); this.style.visibility = "hidden"; var file_xml = iframeControlObj.contentDocument.getElementById('hiddenxml'); file_xml.value = xml_value; iframeControlObj.contentWindow.location.reload(); Explanation I have an iframe in which there is a control "hiddenxml". I want to send the data into the iframe from the current