473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

how to have button not get focus during tabbing in window?

Hello,

I have been trying to deal with the issue of the default button that
gets clicked when a user hits enter.

As has been suggested on these newsgroups, I employed the strategy of
creating a tiny (invisible to user) button that I have listed before
my other buttons on my page. This serves the purpose of being the
"default" button so that nothing happens on click of the enter key.

This is working pretty well, but there is a little annoyance I am
hoping someone can help with. When someone tabs around the window,
the little button obviously gets the focus at some point.

I don't want the "fake" button to get focus at all. But, disabling
it, etc. defeats the purpose in the first place.

Any suggestions?

Thanks,
M.
Nov 18 '05 #1
1 1115
setting the TabIndex property of the control ?

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Miriam" <ms*****@hotmail.com> wrote in message
news:c7**************************@posting.google.c om...
Hello,

I have been trying to deal with the issue of the default button that
gets clicked when a user hits enter.

As has been suggested on these newsgroups, I employed the strategy of
creating a tiny (invisible to user) button that I have listed before
my other buttons on my page. This serves the purpose of being the
"default" button so that nothing happens on click of the enter key.

This is working pretty well, but there is a little annoyance I am
hoping someone can help with. When someone tabs around the window,
the little button obviously gets the focus at some point.

I don't want the "fake" button to get focus at all. But, disabling
it, etc. defeats the purpose in the first place.

Any suggestions?

Thanks,
M.

Nov 18 '05 #2

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

Similar topics

6
by: George Hester | last post by:
The reason why I want to do this is that I will set a form's elements to have a tabIndices. I start out with no tabbing. The page loads the cursor appears in a first Input box and until the user...
11
by: Dom | last post by:
Hi, I wanted to use the Button Element to submit a form like this example: <form action="/test.exe" method="post"> <button id="ID_BUTTON_OK" name="_WEB_EVENT_HANDLER_" type="submit"...
3
by: Praveen | last post by:
In IE a table element will receive focus when you either tab into it or when you click anywhere within the table. Mainly it fires the onfocus event. This doesn't happen in Mozilla (Firefox and...
1
by: damonwischik | last post by:
I'm using GNU Emacs 21.3.1 with python-mode 1.0alpha under Windows XP. Whenever I execute a command in an edit window (with py-execute-region), the output window steals the focus. How can I stop...
24
by: John Gabriel | last post by:
CreateDialogIndirect() fires my Radio button click function without the radio button having being clicked. I am using VC++ 2003.NET. I believe this is yet another Microsoft bug. Have checked dialog...
4
by: Jeff | last post by:
Hi, I'm attaching an onfocus event handler to an anchor tag like this: if(window.attachEvent) anchor_node.attachEvent('onfocus', gotFocus); if(window.addEventListener)...
2
by: Joergen Bech | last post by:
Hope someone has a solution or some suggestions for this. This cannot be right?!? Problem: I have multiple non-modal forms open at the same time. One or more of these forms have a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.