Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Euro sign or other entity in Javascript alert/messagebox

Does anybody know how i can show a euro or other html entity in javascript alert windows?

like image 389
Sander Versluys Avatar asked Mar 19 '09 09:03

Sander Versluys


2 Answers

<script>alert("\u20ac");</script> 

(20AC being the Unicode character for the euro sign.)

like image 20
David James Avatar answered Sep 19 '22 03:09

David James


alert('\u20AC'); 

HTML Entity Character Lookup

like image 155
kkyy Avatar answered Sep 21 '22 03:09

kkyy