By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,282 Members | 1,518 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,282 IT Pros & Developers. It's quick & easy.

Can't display trademark symbol in javascript and aspx

P: n/a
Hi,

On my site I have "SomeProduct™", a name with the trademark symbol, in
a javascript menu. When the page (js) was refered in classic asp it
showed the trademark symbol. Now the page is aspx (.net) and the
traemark symbol displays as a "?".

I used String.fromCharCode(153) to display the "™", but it displays a
box.

How do you display the TM in javascript and .net?

Thanks,

Phin
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
<script>
document.write("SomeProduct&trade;");
</script>

"mrwoopey" <mr******@yahoo.com> wrote in message
news:e4**************************@posting.google.c om...
Hi,

On my site I have "SomeProductT", a name with the trademark symbol, in
a javascript menu. When the page (js) was refered in classic asp it
showed the trademark symbol. Now the page is aspx (.net) and the
traemark symbol displays as a "?".

I used String.fromCharCode(153) to display the "T", but it displays a
box.

How do you display the TM in javascript and .net?

Thanks,

Phin

Jul 20 '05 #2

P: n/a
> On my site I have "SomeProductT", a name with the trademark symbol, in
a javascript menu. When the page (js) was refered in classic asp it
showed the trademark symbol. Now the page is aspx (.net) and the
traemark symbol displays as a "?".

I used String.fromCharCode(153) to display the "T", but it displays a
box.


tm = '\u2122';
r = '\u00AE';

That is the JavaScsript representation of Unicode characters. The client machine
still needs to have adequate fonts installed.

http://www.crockford.com

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.