why am I getting this error on this code:
I am programming javascript in an asp.net webpage, but I can't figure out why when the page initially runs, it works ok, but as soon as a link is clicked on, the javascript bombs out. If any of you have experience with aspx pages, please see this post:
thread855-1476195
Code:
function changeRowColor(rowID)
{
document.body.style.cursor = 'pointer';
var oldColor = '';
var color = document.getElementById(rowID).style.backgroundColor;
if(color != 'green')
{
document.getElementById(rowID).style.backgroundColor = 'green';
oldColor='green';
}
else
{
document.getElementById(rowID).style.backgroundColor = oldColor;
}
}
I am programming javascript in an asp.net webpage, but I can't figure out why when the page initially runs, it works ok, but as soon as a link is clicked on, the javascript bombs out. If any of you have experience with aspx pages, please see this post:
thread855-1476195