I'm a little late, but just in case someone finds it via Google (like me), I thought I would improve on Imperative .
function showbullet() {
var tempelement = document.createElement('div');
tempelement.innerHTML = "•";
alert("Here, have a bullet!\n" + tempelement.innerHTML);
}
showbullet();
I tested this and confirmed that it works in Chrome / 43.0.2357.130 m; Firefox / 32.0.1; Internet Explorer / 9.0.8112.16421. There is no need to fuck with nodeValue and what not; the object will be replaced by an associated symbol as soon as the task is completed. (Note, however, that the execution alert(tempelement.innerHTML="•");does not work in any of the browsers you tested!)
source
share