Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi can anyone give browser compatability script and some sample programs based on style for browser compatability (for firefox)
Posted
Updated 23-Nov-12 23:53pm
v2
Comments
Nelek 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

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:

XML
<script language="javascript">
var ua = navigator.userAgent
if (ua.indexOf("Firefox")>0)
{
    alert('Firefox!')
    //firefox compatible code
}
else
{
    alert('Other Browser!')
}
</script>
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900