472,975 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,975 software developers and data experts.

changing default button

i have a form with 3 buttons with a text box next to each button

what i want to do is when a textbox is filled out the default button is
changed to the button next to that text box rather than the first button on
the form.

how would i do this.

Sep 26 '05 #1
2 2680
do you mean the tab index? are you able to explain / provide
non-working example?

Sep 26 '05 #2
<form method="POST" action="page.html">
<p><input type="text" name="box1" size="20"><input type="submit"
value="Button 1" name="B1" onclick (do something 1)></p>
<p><input type="text" name="box2" size="20"><input type="submit"
value="button 2" name="B2" onclick (do something 2)></p>
<p><input type="text" name="box3" size="20"><input type="button"
value="button 3" name="B3" onclick (do something 3)></p>

in the above example if box 3 is filled in and you press the enter key,
button 1 will be operated as it is the first button on the page and is the

what I want is when box 3 is filled out and the enter key is pressed button3
is operated, maybe when one of the text boxes gets the focus then the
appropriate button is set as default - hope you understand what I want
<ij********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
do you mean the tab index? are you able to explain / provide
non-working example?

Sep 26 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Free-Ed, Ltd. | last post by:
I am going nuts trying to find a paragraph in a book that described how to change the text content (HTML) in a DIV. Actually I have an array of HTML strings that I want to drop into the DIV,...
by: David Deacon | last post by:
Hi i was given the following advise,below my OriginalQuestion I am a little new to ADOX can you direct me to the following Do i place the code behind a button on a form? Or do i place it in the...
by: VINAY | last post by:
Dear All, The subject line could be bit confusing. So let me explain in details, please have patience. I have developed an ActiveX Control(Combo Box Control) in VB6 for a touch screen...
by: Jim M | last post by:
Two questions: 1) I have a scheduling application (Access 2002) that allows multiple staff members to edit notes on their meetings and appointments from their offices. A receptionist views a...
by: Robson Carvalho Machado | last post by:
Dear friends, I have an IFRAME that I want to change src url when clicking a button. How can I change IFRAME src using button_click ? <iframe runat="server" frameBorder=0 marginHeight=0...
by: Firewalker | last post by:
I am attempting to change the backColor property on the previously instantiated buttons FROM a listbox_doubleClick event. I thought it would be something like this: If...
by: Colin McGuire | last post by:
Hi, according to the on-line documentation you can change the background colour of, for example a button, to Gray as shown below. Dim b as Button b.BackColor=Color.Gray If I programmatically...
by: Ben | last post by:
I have a formview with a few dropdownlists (software version, database version, etc). When a software version is selected, the database version dropdownlist updates itself accordingly. When in...
by: Don Miller | last post by:
I have a webpage (form) that has multiple buttons contained within, and all cause a postback if clicked. I have a textbox where users enter a phrase and then have to click a "Search" button that...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.