Link to home
Start Free TrialLog in
Avatar of webdork
webdork

asked on

ASP conditional javascript

I like the dhtml drop down navigation menus... but of course it's conditional on javascript being present.

I usually put the nav in an include file. I'm looking for a way a reliable way to substitute the include file when js not enabled.

IF JS present THEN
<!--#include file="dhtml_nav.asp" -->
ELSE
<!--#include file="hlink_nav.asp" -->
END IF

I'm open to a better solution.
Avatar of Jesse B
Jesse B
Flag of Australia image

Using browsercap is probably your best bet.  Some code of what you can use it for is available at http://www.learnasp.com/freebook/asp/bc.aspx
Avatar of webdork
webdork

ASKER

Thanks for responding. That does not work in Firefox. Any idea why not?
ASKER CERTIFIED SOLUTION
Avatar of Jesse B
Jesse B
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial