In IE, newval gets set correctly. fdot[newval].src correctly returns a string.
The image source doesnt change. No errors are thrown by IE’s debugger
Chrome’s debugger and FF’s error console decides that document.getElementById(fname) is null, and fails immediately.
then make sure you have an element in your html with an id equal to the output of the alert().
I suspect you won’t have and that is why FF and Chrome are tripping up. I think some browsers will take the value of the name attribute as the id if the id attribute does not exist.