Modernizer feature Detects

tomww

New Member
I have to use modernizer to detect whether the browser supports "cssscrollbar" property, true or false. Based on that value I have to do stuff like adding plugin and CSS.I am using something like this below, which I am not aware of:\[code\]var frag = document.createDocumentFragment();for ( prop in Modernizr ) { var para = document.createElement('p'); para.textContent = prop + ': ' + Modernizr[ prop ]; frag.appendChild( para );}document.body.appendChild( frag );\[/code\]Check the fiddle which I am referring to.
 
Back
Top