Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi can anyone give browser compatability script and some sample programs based on style for browser compatability (for firefox)
Posted 23-Nov-12 22:07pm
Edited 23-Nov-12 23:53pm
Nelek51.6K
v2
Comments
Nelek at 24-Nov-12 5:54am
   
As I already told you in the other question. This is not how it works. Please carefully read:
what have you tried?[^]
How to ask a question?[^]
Homework[^]

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

There is no such script.
 
There are lot of function and properties which are uncommon between different browsers, so you have to find out browser and write compatible code.
 
The following script will help you:
 
<script language="javascript">
var ua = navigator.userAgent
if (ua.indexOf("Firefox")>0)
{
    alert('Firefox!')
    //firefox compatible code
}
else
{
    alert('Other Browser!')
}
</script>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 mhegazy94 488
1 Sergey Alexandrovich Kryukov 375
2 Kornfeld Eliyahu Peter 285
3 Sibeesh KV 251
4 Gihan Liyanage 189
0 Sergey Alexandrovich Kryukov 6,775
1 OriginalGriff 6,696
2 CPallini 5,345
3 George Jonsson 3,599
4 Gihan Liyanage 2,751


Advertise | Privacy | Mobile
Web02 | 2.8.140922.1 | Last Updated 24 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100