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
Issue with Thecus 1u4500 not booting
Microsoft Information Store stalling issues
Auto file move and rename
Major help is needed customizing the Windows 7 default user profile
'AddressOf' expression cannot be converted to 'Integer' because 'Integer' is not a delegate type.
Domain Controller rename and IP change
time duration on cfchart y axis
Notes 8.5.1 - Increasing Java Heap Size - No com.ibm.rcp.j2se.<version>
file
Database on a 64 bit OS - Conection issues
Deleted nested folders and files with powershell