Browsers
Buttons
While testing the new version of the Table Manager IE managed to cause me some major headaches. Buttons should be pretty flexible tools for web forms, you can put markup between the opening and closing tags and the value attribute should be sent with the form not the markup or text between the tag opening and ending. So you can have multiple buttons in a form and only send the values of the button that was clicked. Now this would be great if only IE would play nicely.
DOM Browser Support
This page tests your browser for DOM (Document Object Model) support and allows you to compare it to other popular browsers. The first column after the property name shows your browser result.
The tests used are very simple and results should only be used as a guide. Be aware of browsers that only partially support the property
These days with all the Ajax and JavaScript Libraries around worrying about browser support is a thing of the past or at least something left to the library. I hope this is useful to someone.
For this DOM test to work with your browser you need to support at least getElementById.
Does your browser support getElementById?
Properties
| IE | Firefox | Opera | ||||||
|---|---|---|---|---|---|---|---|---|
| DOM property | Your browser | 5 | 5.5 | 6 | 7 | 2 | 6 | 7.0 |
| Attributes | ||||||||
| childNodes | ||||||||
| className | ||||||||
| clientHeight, clientWidth | ||||||||
| firstChild | ||||||||
| id | ||||||||
| innerHTML | ||||||||
| lastChild | ||||||||
| nextSibling, previousSibling | ||||||||
| nodeName | ||||||||
| nodeType | ||||||||
| offsetHeight, offsetWidth | ||||||||
| offsetParent | ||||||||
| offsetLeft, offsetTop | ||||||||
| parentNode | ||||||||
| scrollHeight, scrollWidth | ||||||||
| tabIndex | ||||||||
| tagName | ||||||||
| textContent | ||||||||
Methods
| IE | Firefox | Opera | ||||||
|---|---|---|---|---|---|---|---|---|
| DOM method | Your browser | 5 | 5.5 | 6 | 7 | 2 | 6 | 7 |
| addEventListner | ||||||||
| appendChild | ||||||||
| blur | ||||||||
| click | ||||||||
| cloneNode | ||||||||
| dispatchEvent | ||||||||
| focus | ||||||||
| getAttribute | ||||||||
| getAttributeNS | ||||||||
| getAttributeNode | ||||||||
| getAttributeNodeNS | ||||||||
| getElementsByTagName | ||||||||
| hasAttribute | ||||||||
| hasAttributes | ||||||||
| hasChildNodes | ||||||||
| insertBefore | ||||||||
| removeAttribute | ||||||||
| removeAttributeNode | ||||||||
| removeChild | ||||||||
| removeEventListener | ||||||||
| replaceChild | ||||||||
| setAttribute | ||||||||
| setAttributeNS | ||||||||
| setAttributeNodeNS | ||||||||
Proprietry
| IE | Firefox | Opera | ||||||
|---|---|---|---|---|---|---|---|---|
| DOM object | Your browser | 5 | 5.5 | 6 | 7 | 7 | 6 | 7.0 |
| innerText | ||||||||
| All | ||||||||
| canHaveChildren | ||||||||
| canHaveHTML | ||||||||
| children | ||||||||
| contentEditable | ||||||||
| currentStyle | ||||||||
| document | ||||||||
| outerText | ||||||||
| outerHTML | ||||||||
| parentElement | ||||||||
| addBehavior | ||||||||
| applyElement | ||||||||
| attachEvent | ||||||||
| contains | ||||||||
| dragDrop | ||||||||
| fireEvent | ||||||||
| removeExpression | ||||||||
| removeNode | ||||||||
| replaceNode | ||||||||
| swapNode | ||||||||
Browser Sniffing
First released 16 October 2001.
Latest update 25 June 2011 version 2.2 added better mobile detection.
This PHP Browser Sniffer uses the HTTP Header sent from your browser, to detect the type and version of browser and platform. There are lots of other sniffers on the web, this one is very simple and effective. It hasn't been designed to detect all browser and operating system combinations. Feel free to modify it if you see a need, and please let us know of any bugs.
Many browsers allow user to change the User Agent string used to detect the browser. There is no simple way to detect if the User Agent has been changed. Most developers no longer rely on User Agent sniffing, instead the preferred method is to use JavaScript object testing to test if the functionality they wish to use is supported by the browser.
Visitor Sniffer can be used to customize web pages for different browsers or for gathering statistics on web visitors.
To use the visitor sniffer on your php page:
include("sniffer.php");
$sniff = new sniffer();
Then the variables can be accessed like:
$sniff->engine
$sniff->browser
$sniff->version
$sniff->platform
$sniff->mobile
$sniff->desktop
$sniff->console
$sniff->tablet
Example results for your browser
Engine: unknownBrowser: Internet Explorer
Version:
Platform: Desktop: Windows XP
Mobile: 0
Desktop: Windows XP
Console: 0
Tablet: 0
As the product is free the creators and download sites accept no responsibility for any problems that may occur from the use or download of this product. We hope you find this visitor sniffer useful and we welcome comments and suggestions.
Web Usage Stats
This page shows stats on visitors such as the operating systems and browsers.


