HTML & CSS
I have a piece of script that runs great on all browsers other than Chrome and I want to exclude it from being seen/used on Chrome.
Whats the conditional <!--[if XXXX]> statement to wrap around it?
Is it actually causing problems for Chrome, or is it just not running? If it isn't doing anything bad, I would just leave it as it is...
Yeah, I've got to go with the crowd on this, instead of not sending it to chrome - FIX IT so it works.
But as a Opera user I'm sick of scriptards basically telling me to **** off, so the notion of saying to another major browser "no" doesn't float with me.
Only Internet Explorer read conditional comments. As Ralph wrote, why not fix the script to run in Chrome too?
So far as I know, that code doesn't exist yet. You could sniff the browser with JS, but it would be better to find out why it's not working in Chrome and address that.
There are PHP and js browser sniffers out there you just have to search a bit. But like others said I'd just fix it.
This topic is now closed. New replies are no longer allowed.