On Thu, 6 Dec 2001, Piroumian, Konstantin wrote: > > > > > > Oh, gosh, no need to be a javascript guru for that > > > > > > <input type=submit onsubmit="q.value += 'site:xml.apache.org'"> > > > > > > might do it. (you might need to add id=q to the text field) I can > > > investigate this more if we are going in this direction. > > > > This is why I asked for a guru 'cause it's not going to work with your way > ;) i > > already checked that out yesterday. > > > > 'onsubmit' is allowed only for a form tag and not an input. I've tried this > and it worked: > > <!-- Search Google --> > <form method="GET" action="http://www.google.com/search" > onsubmit="q.value += ' site:xml.apache.org'"> > <input type=text name=q size=31 maxlength=255 value=""> > <input type=submit name=btnG value="Google Search"> > </form> > > <!-- Search Google -->
Cool, that's what I was looking for. Giacomo > > Regards, > Konstantin Piroumian > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]