[thelist] put special chars in a tooltip?

Chris Blessing webguy at mail.rit.edu
Wed Jul 10 14:47:00 CDT 2002


Tom-

You could use the extended ascii equiv. like this:

.title = someNumber + String.fromCharCode(176);

HTH!

Chris Blessing
webguy at mail.rit.edu
http://www.330i.net

> Heyo,
>
> Is there any way to put a special character in a tooltip? I wanted to
> put a "degrees" symbol in one but cannot seem to get it to work. My
> line of code is:
>
> document.getElementById(thisId).title = someNumber + º
>
> which does not work, JS rightly thinks that is some kind of variable
> or somesuch. Putting in quotes gives you the string of course...how
> else could I do it?
>
> Tom



More information about the thelist mailing list