Presumably, and in limited testing (In Safari 3 Win, and Google Chrome which support it, and in Opera 9, Fx 3, and IE 7 which do not), one would just need to test:
Code:
typeof document.documentElement.style.resize
If supported, this will be 'string', otherwise 'undefined', so do like:
Code:
if(typeof document.documentElement.style.resize === 'string'){
code here to take advantage of this property
}
The document.documentElement object is available for this sort of testing immediately after the opening html tag has been parsed, so this test may be used in the head of your document.
Bookmarks