I need to change text box style based on Browser

Posted by Sekar.C under CSS 3 on 4/15/2014 | Points: 10 | Views : 540 | Status : [Member] | Replies : 1
Hi,
I need to change text box style based on Browser
If IE 10 then one color
Other browser then different color
How it’s passible in asp.net with css

Regards
Sekar.c



Responses

Posted by: Vinothkumar on: 4/16/2014 [Member] Starter | Points: 25

Up
0
Down
Check the browser type and version in javascript.. like this

<script type="text/javascript">
if(navigator.appName.indexOf('Internet Explorer')!=-1 && browserVersion.indexOf('6')!=-1)
{
document.write('Do this');
}
else
{
document.write('Do this');
}
</script>

Regards,
Vinoth kumar

Sekar.C, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response