in reply to javascript perl cgi.pm

I'd suggest renaming your textbox. The hyphen is confusing JavaScript. It thinks you're subtracting name.focus() from window.document.mailform.required, because the hyphen is treated like a minus.

Either change the field name, or do: window.document.mailform.elements['required-name'].focus() (untested)

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: javascript perl cgi.pm
by jwlarson3rd (Acolyte) on Jan 31, 2004 at 21:59 UTC
    thank you that works. John Larson