A simple javascript file to simulate text input.