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
Sonicwall - Spam Filter - Exchange Interaction
Asterisk 1.4 assigning outbound routes based on extension
Auto file move and rename
Netpilot through a VPN
Issue with Thecus 1u4500 not booting
return double array in Delphi call to c++
Removing Rootkit.Agent on Windows XP SP3 ComboFix log attached
Access 2007, form datasheet view, change display property of an element based on another element in the record
Install IIS with a vbs script.If supporting files needed pick from a predefined path.
PHP string replace question