views:

165

answers:

2

I have the following code below for a button on an aspx page. When it is clicked it should call a javascript that will print the text in that div. Everything works great in IE & Firefox but when it is tried in chrome it is as if the OnClientClick is not kicking off the javascript. I receive no errors and it works in IE and FF now.

Below is the code for the button that calls the javascript.

<asp:Button ID="btnEULAPrint" Text="Print" runat="server" ValidationGroup="EULA"
            OnClientClick="javascript:CallPrint('EULA');return false;"/>

Anyone have any ideas or links they could share to point me in a direction?

Thanks

A: 

Might be some source issues. Because Its work for me in Chrome

joe
+2  A: 

I have to ask, did you try removing javascript: from the attribute?

ChaosPandion