473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Put Icon On Browser Window

Hi there,
I was wondering how to put an Icon up in the top left corner of the browser
window??
also,
is there a way to know if the user closes the browser window with the X in
the top right corner.. i wanted to open a goodbye page if the user clicks
that...

thanks!
Ad****@hotmail.com
Nov 19 '05 #1
5 6097
ACaunter,

You can use the javascript window.OnClose event to determine when the window
is closed to display your goodbye message. As for the icon....where do you
mean? On the browser or in the address bar?

I hope this helps

Nov 19 '05 #2
i needed to put the icon in the address bar and in the browser window.. to
get rid of both of those IE icons...

"Brian Brown" wrote:
ACaunter,

You can use the javascript window.OnClose event to determine when the window
is closed to display your goodbye message. As for the icon....where do you
mean? On the browser or in the address bar?

I hope this helps

Nov 19 '05 #3
How do i use the Window.OnClose event in javascript
???

"Brian Brown" wrote:
ACaunter,

You can use the javascript window.OnClose event to determine when the window
is closed to display your goodbye message. As for the icon....where do you
mean? On the browser or in the address bar?

I hope this helps

Nov 19 '05 #4
ACaunter,

Sorry I meant onunload not onclose.... I have provided a sample for you below.

I hope this helps.
-------------------

<html>
<head>
</head>
<body onunload='javascript: alert("Do you want to close this window?")'>
Test html page!
</body>
</html>

Nov 19 '05 #5
ACaunter,

To put an icon in the address bar first you need an icon. It has to be a
16x16 pixel .ico file name favicon.ico. If you have your own domain all you
have to do is put it in the root of the website but if your website is nested
(e.g. http://www.mydomain.com/~mysite/ ) you have to put a line in the head
of your webpage. Just add <LINK REL="SHORTCUT ICON"
HREF="/~mysite/favicon.ico"> and you should be good to go.

To change the icon in the upper right hand corner of the browser (the
animated one) is a bit more involved. You can accomplish this with several
different methods. One is by using the IEAK. I have pasted a link below
that has a tutorial to do this. You can find other methods to brand IE
ranging from using the Group Policy Editor to some registry hacks.

I hope this helps.
---------------------------
http://www.microsoft.com/windows/iea...en/wiz4_1.mspx

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tim Jarman | last post by:
Apologies in advance for the long post - I wanted to be sure I included all the relevant details. The answer is probably very, very simple. I am doing something stupid here, but I don't know what...
9
by: arenaTR | last post by:
I'd like to put a logo in the titlebar of my webpage. The one I'm talking about is the one that's next to the URL in the address bar in both netscape and IE. Just so I'm clear, for example, on...
7
by: MightyKitten | last post by:
L.S I'm not sure who I should contact, but it seems the valid-html401 icon is missing at http://www.w3.org/Icons/valid-html401 --
8
by: Ed Isenberg | last post by:
I notice that a lot of Web pages have an icon that is displayed preceding the URL in the place in the browser where the URL is displayed. When I bookmark or add this to Favorites the icon is also...
2
by: Peter Stojkovic | last post by:
I have programmed a window with an icon. Now I want, that this window has NO Icon. But I can not remove the icon within VS.NET. I can only select an other ICON ! How can I remove the icon...
3
by: Nina | last post by:
Hi there, I assigned icon for a window's form using form's Icon property at design time. Now I want to change the icon. I tried to replace the old icon with the new icon using form's Icon...
1
by: partha | last post by:
This is my html file test.html <HTML> <HEAD> <TITLE>Main Window</TITLE> <link rel="shortcut icon" href="/MSN.Icon" type="image/x-icon"> </HEAD> <BODY > Should Work </BODY>
0
by: qwu2008 | last post by:
All, I wanted to create a browser helper object that has a clickable icon at the right corner of the browser (similar to the Google notebook icon at the right corner of the browser). When the user...
9
by: Christopher Carey | last post by:
I'd like to be able to control the icon presented in the upper left corner of the browser dynamically, based upon the page I'm serving. Is there a way to do this?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.