views:

30

answers:

1

I have master in my project.i have added js file in my master page.so that i can able to call the function in my content pages.My problem is when i am using this function ""if(!$.browser.msie){alert("Not ie Browser");}"" not working in ie6.In ie6 it is showing alert("Not ie Browser") all the time when the page load happens?Can i get some reason behind this?

Thank you

+1  A: 

Try this.

if($.browser.msie && $.browser.version=="6.0") alert("I am IE6");
Adeel
if(!$.browser.msie } Still this alert showing all time
Joby
i have used master page and seperatee javascript file
Joby
@Joby Remove ! operator from the beginning in your if condition
Adeel
Joby