• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

favicon

 
kamlesh tayade
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to add favicon in URL

What necessary steps I have to take
 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a servlet related question, moving to the HTML and Javascript forum. JUST KIDDING! XP

Well, if you want to have a favicon, you could either make an icon named favicon.ico in the root context of your application or...

put something like this in your page if you want to point to a relative path to your icon

<link rel="icon" href="images/favicon/gmfavicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="images/favicon/gmfavicon.ico" type="image/x-icon">


It only works for firefox for me though... I dunno why it doesn't work with IE... Javaranch's favicon does work with IE...
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IE has to be in your bookmarks

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic