The wonders of functions

JavaScript is a funny language. This causes a “not implemented” error in Internet Explorer…

window.onload = document.forms.f.q.focus();

But this works fine…

window.onload = function(){
	document.forms.f.q.focus();
}

Hmmm.

Timeline

Newsletter

Don't have time to check my blog? Get a weekly email with all the new posts. This is my personal blog, so obviously it is 100% spam free.

Metadata

This entry was posted on Saturday, June 24th, 2006 at 2:50 pm and is filed under Life. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.