Microsoft
Software
Hardware
Network
Question : Javascript error in Chrome when setting innerHTML or innerText
I need to set the text on a hidden asp:textBox in javascript. The Script works fine in FF and IE but fails in Chrome. Does anyone know how to correct or work around this issue? The attached HTML when run in Chrome will give the error. Thanks
chromeError.htm
(605 bytes)
(File Type Details)
HTML to produce error
Answer : Javascript error in Chrome when setting innerHTML or innerText
You need no innerHTML, innerText.
The correct attribute name is: value
Like this:
<script language=javascript>
function loadText(txt) {
try {
var el = document.getElementById("T
ext1");
el.value = txt;
}
catch (err) {
alert(err);
}
}
</script>
Random Solutions
2nd DNS Entry for Exchange Client Access Server
How to export images from Access to Excel
Event ID 333 - Server 2003 SP2 I/O Error
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted
JavaScript Get Variable Field Value
what is the default directory to run jsp file from tomcat 5.5 and what directory for mysql_connector.jar file to be placed?
Problems installing the AjaxControlTooKit.dll
Readystate in IE in VBA program
perl regexp with div tags and space
MySQL IFNULL() selection