javascript button onclick not working in firefox





I wonder why middle click (scroll button) cant load onclick function on Firefox only while on Chrome it works. So instead of onclick function it shows href link which is javascript:void(0). You can try clicking on your button outside of your svg (the button being both the target and currentTarget in this case), and your code works. I didnt had a look on why its working on Firefox, but here the issue is more like why its working in Firefox, than why its not in Chrome. Problem is, when trying to click on the input in Firefox, it bubbles up to the button so the event is swallowed by the parent button and not by the input. Chrome works fine, but Firefox is having an issue with stopPropagation looks like. Changing button text. Depending on how you declare the button, you need to either useNote: this tutorial has been tested with IE6 and Netscape 6.2 and 7, Firefox 1.04, and Opera 8 on the PC.