faqts : Computers : Programming : Languages : JavaScript

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

2 of 3 people (67%) answered Yes
Recently 2 of 3 people (67%) answered Yes

Entry

How do I detect if the users browser supports layers?

Apr 7th, 2008 22:45
ha mo, Jean-Bernard Valentaten, Pete Ruby,


You can check that using the document.layers object:
if (document.layers)
  alert('Browser supports layers');
else
  alert('Browser does not support layers');
Basically any object that is part of the document object can be checked 
this way.
HTH,
Jean
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com