Quick DOM question

search_form.search_author.value=""

In IE7 it works find, but in FF3 I get the error search_form is
undefined. search_form is the name of my form.

Thanks for the help!

Easiest thing is to include “id” parameter to your form and use
prototype matcher $(‘myformid’) - it’s probably most cross-browser
behavior.

On 8 Aug 2008, at 08:52, Hubert ??picki wrote:

Easiest thing is to include “id” parameter to your form and use
prototype matcher $(‘myformid’) - it’s probably most cross-browser
behavior.

I believe document.forms[‘search_form’]… should also work across
browsers (without requiring prototype)

Fred