I created two JavaScript functions.
var a, b;
function changeTo(a, b) {
document.getElementById(a).className = 'editborder';
document.getElementById(b).className = 'editborder';
}
function changeToo(a, b) {
document.getElementById(a).className = 'editborder_';
document.getElementById(b).className = 'editborder_';
}
They are called by the <asp:LinkButton>
with one argument:
<asp:LinkButton ID="LinkButton7" runat="server"
onMouseover="changeTo('div_master');"
onMouseout="changeToo('div_master');"
Text="Edit Bg Color" CommandArgument="0" OnClick="lnkchangebg_click">
</asp:LinkButton>
It works fine in Chrome, but in IE6 it causes the following error:
error 'document.getelementbyid(...)' is null or not an object
How is this caused and how can I solve it?