hi, i am trying to put an image into the title. i mean like daniweb's title icon is the blue "db" and google's "G", you know...the image in the location bar? sorry i dont know how to explain it properly cuz i dont know what it's called.


Recommended Answers

All 3 Replies

Your issue has got nothing to do with Javascript; it is handled when deploying your web application on the web server / container of your choice by means of a configuration file. Consult your web server's documentation for more details.

That is called a favicon, it's pretty easy to implement just toss this in your <head></head> section.

<link rel="shortcut icon" href="location of your image here" type="image/type here" />

So if I had an image called myFavicon.jpg I would use.

<link rel="shortcut icon" href="myFavicon.jpg" type="image/jpeg" />

yea, i actually found out about favicon, but forget that i had posted a question about it.

Thanks anyway :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.