<input type="text" value="Javascript;css">
field=document.getElementById("id") button.onclick=function(){field.value=field.value.replace("Javascript;", "")}