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
Crystal Reports Shell in C#
C# convert military time to standard time
Hosted Syslog Server
From where I can download HP Smartstart version 8.40
Odd Copy and Paste Symbol
Disable Auto-Summary on Router
How do I use the registry to disable CTRL+O keyboard shortcuts in Windows XP/IE 6
Sync outlook 2010 between laptop and desktop
Adobe Flash Player Registry Settings
Login to SSRS as andmistrator rather than anonymous user.