<div> capable browser detection

Is there a way to detect if a browser is able to handle layers?

Or the opposite if it's not able...
LVL 1
mannycalaverasAsked:
Who is Participating?
 
tkleinConnect With a Mentor Commented:
<script>

 if (document.all) { ie=1 }
 if (document.layers) { ns = 1 }

</script>



if ie or ns == true
the browser understand the div tag

sorry 4 my english

0
 
tkleinCommented:
<script>

 if (document.all) { ie=1 }
 if (document.layers) { ns = 1 }

</script>



if ie or ns == true
the browser understand the div tag

sorry 4 my english
0
 
tkleinCommented:
sorry i have posted 2 times ;(
0
All Courses

From novice to tech pro — start learning today.