function format()
{
var num = document.getElementById('phone').value;
bluh
bluh
bluh
}
<input name="phone" type="text" id="phone" onchange="format();" /></form>
ASKER
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY