View Full Version : Browser detection and ..

01-30-2007, 09:16 PM
Hi everyone. I will write shortly, because I dont know english good..
So I need script, which will detect users browser, and if browser will be IE, then show some link in content, if browser is FireFox or Opera, then hide that link. Link looks like:

<td align='center' valign='top'><a href='/' target='_blank'>link</a></td>

Thanks to all for any help!

01-30-2007, 09:50 PM
Use HTML - no Javascript required.

<!--[if IE]>
<p>This content will appear in IE.</p>
<--[if !IE]-->
<p>This content will appear in all browsers except IE.</p>

01-30-2007, 10:07 PM
Stephen, thanks very much for help. A little problem, in IE when opening page this is showing: <[endif]-->

In FF and Opera works good.

01-30-2007, 10:11 PM
Stephen was close. He left out a >. Try this

<!--[if IE]>
<p>You are using IE</p>
<!--[if !IE]>-->
<p>You are not using IE</p>

01-30-2007, 10:27 PM