Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Only visible in Internet Explorer


  • From: javascript@xxxxxxxxxx (Hassan Schroeder)
  • Subject: [Javascript] Only visible in Internet Explorer
  • Date: Wed, 23 Oct 2002 09:23:44 -0700

ws wrote:
> Hi there,
> 
> How do I make the link "invisible" in other browsers than Internet 
> Explorer?

Actually, you don't even need JavaScript; IE recognizes what are
called "conditional comments" -- for example,

<!--[if IE]>

   <a
   href="javascript:window.external.AddFavorite('http://www.urlgoeshere.com',
   'Example bookmark link')">
   Bookmark</a>

<![endif]-->

Non-IE browsers will treat this as a standard HTML coment, but IE
will display it.

HTH!
-- 
Hassan Schroeder ----------------------------- hassan@xxxxxxxxxxxxxx
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
                   ---                      ---
                   ---     dream.  code.    ---