×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Jeff

Many thanks

To my mind, whilst the ENTER, PAGE UP AND PAGE DOWN buttons are duplicated ( and I will test your code on these)

the rest of the button names are unique

Or am I not understanding?

Rob Dixon

Flaker, Jeff wrote:

Rob,

If you have two or more elements bearing the same name you must do this
via a FOR loop.

Think of the two elements as an array, because that is what they
are....so loop through the array and change the button values:

for (i=0;i<form.ButtonName.length;i++)
       {form.ButtonName[i].value="SomeOtherValue";}

"SomeOtherValue" can be a variable also.

Jeffrey Flaker
Senior Programmer/Analyst
Linens 'N Things
6 Brighton Rd
Clifton, NJ  07015
Phone:   973-249-4384
Fax:     973-249-4901
http://www.lnt.com







This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.