faqts : Computers : Internet : Web : CSS

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 5 people (100%) answered Yes
Recently 5 of 5 people (100%) answered Yes

Entry

How do I know if my clients browser supports CSS, so to redirect him to another page?

Dec 6th, 2001 09:36
Ben Gordon, Joćo Martins,


Joćo,
This piece of code should do it for you
<script>
 if (document.all || document.layers || document.getElementById){
window.location="http://www.is_enabled_page.com"
<!--Support CSS-->
 }else{
 window.location="http://www.isnt_enabled_page.com"
<!--Non CSS Browser-->
 }
</script>
Hope It Helps
Caislander
From the land of Sunshine,