This is quite a generic question as there are N number of reasons why your script won't work in multiple browsers
Thus instead ask question by pasting the line that is causing error and the error
To Find Errors in Chrome
Click the Page menu icon and select Developer > JavaScript Console. From here, you'll be able to view errors in the JavaScript execution, and enter additional JavaScript commands to execute.