[Cialug] ajax testing for javascript
Barry Von Ahsen
barry at vonahsen.com
Mon Jan 28 13:02:34 CST 2013
could you getElementById on something you know should exist (header image, logo, etc)?
or document.body.getChildren().length > 0? (that syntax is probably wrong)
-barry
On Jan 28, 2013, at 9:43 AM, Dave Hala Jr wrote:
> I'm looking for a simple way to test if a browser has Javascript
> enabled. Here's what I come up with. I embedded in the head statement
> in my html. Can anyone see any problem with using this?
>
> <noscript>
> <meta HTTP-EQUIV="REFRESH" content="0; url=<?php
> $_SERVER['SERVER_NAME']?>/main/error.php?err=xx">
> </noscript>
>
>
> :) Dave
>
>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
More information about the Cialug
mailing list