Javascript Why Does My Function Only Work In Firefox Stack Overflow

Javascript Why Does My Function Only Work In Firefox Stack Overflow