Menu
In HTML,
[code]<input type=”button” value=”→”>
gives me a button which renders with an arrow. I want to be able to set the value of a button to such an arrow dynamically as well. So
[code]
var buttonEl = document.createElement(‘input’);
buttonEl.type = ‘button’;
buttonEl.value = ‘→’;
Unfortunately, this does not work. I get instead a button which renders with the ASCII “→”
Is there a different javascript string literal which will render as the HTML entity? Or how is one supposed to achieve this? Thanks in advance.