0

i know that

<!--[if !IE]>--> TEXT <!--<![endif]--> 

will not display TEXT in IE. But i need this to display only in Chrome. How can i do that?

1
  • 1
    Conditional comments exist only in IE. Commented Apr 9, 2011 at 11:25

2 Answers 2

1

Get a library like jQuery and check if the browser is Google Chrome.

The following question's answer contains a code example: Distinguish Chrome from Safari using jQuery.browser

Or you could check out this blog post, which does the same but without a framework.

Sign up to request clarification or add additional context in comments.

2 Comments

can't i do this in bare html?
@Stals: Not that I currently know off.
0

You can do it using CSS, like answered in another question

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.