Font selector
HTML
<p>
Type a font name: <input id="font" /> and click
<button type="button" id="button">here</button>
</p>
<p id="example">
And this is the text that will be displayed in the chosen font.
</p>
JavaScript
document.getElementById('button').onclick = function() {
document.getElementById('example').style.fontFamily =
document.getElementById('font').value;
};