Hello friends,
I am having an aspx page with a panel. I am using the panel as to show a messagebox. The panel id is "panMessage". The panel contains a button label "Hide". I am showing the panel using code behind but need to close the panel with JS when user clicks on Hide button. I have attached the following code with onclick event of the button -
onclick="javascript:(<%=panMessage.ClientID%>).style.visibility='hidden';"
the click event works perfectly in IE but not in FireFox. I have googled and changed the code as -
onclick="javascript:(<%=panMessage.ClientID%>).style.display='none';"
but still the code is not working i.e. the panel is not going to hide in FireFox although it works in IE using this new code also.
Could someone guide me whats wrong i have done?
Thanks for your cooperation.