|
Determine if they're using Firefox
| Language: |
JavaScript |
Unrated
Rated by 0 Users
1 Star = Horrible 5 Stars = Perfect
Rate Code Now
|
| Posted By: |
Keith |
| Author Website: |
asp or php |
| Posted On: |
8/29/2007 |
| Code Views: |
622 |
This code will determine if the user is using an IE or FireFox compatible browser.
|
<script type="text/javascript"> <!-- var MSIE = document.attachEvent ? true : false; var DOM = document.addEventListener ? true : false;
if(MSIE) { // Browser is IE } else if(DOM) { // Browser is FireFox }
//--> </script>
View code in Textarea
This code has not been tested by Your WebCode. Use it at your own risk.
Please report any copyright violations.
|
|