Tag archive for "onfocus"

Did you ever want to know what exactly your visitors are doing on your site? Watch them! A client of mine wanted a plugin to log what users type into forms. I kind of didn't see the point at first. But a few days later I was a little annoyed … more

You may have heard about Harmen Janssen's technique to focus input fields on pageload and keep the backspace button's history back function intact. I wanted to play with it any my first step was to mooify his ideas. So inside the domready event I simply did: function inputify(elem) { elem.focus(); … more

Update: This post is ancient, with CSS3 and HTML5 there are much nicer ways to achieve similar things. When you use HTML forms it is often desirable to pre-fill some input fields. Your idea could be that you want to give your visitors some clue to what they're supposed to … more