Author: mel1sa | Posted on: 11/12/2009 4:00:00 AM | Views : 456

 Hi,
I have an external javascript (because it will be implemented in many functions, so i decided to use an external js) as shown below.
In IE, the following code is working, and the button click event is being fired. But in Firefox, there was no js error, but it just will not fire the button click event as simulated in the js below.
When I test in Firefox, it will execute the code alert('a'), but it will not proceed and the message box 'b' is not displayed.
TriggerClick.js filefunction triggerClick(msg) { if(confirm(msg)) { alert('a'); document.getElementById('<%=ButtonTrigger.ClientID%>').click(); //document.getElementById('ctl00_ContentPlaceHolderContent_ButtonTrigger').click(); alert('b'); } } Go to the complete details ...