473,625 Members | 3,318 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

netscape + enter key problem

Hi,

The problem is like this, I have a textbox and a button, I wanted to disable
the enter key, so as to prevent the user from hitting the enter and seeing
undesirable results. I used this function
function disableEnterKey ()
{
if (window.event.k eyCode == 13) window.event.ke yCode = 0;
}

the disable key works perfectly in IE
but only in some instance of Netscape,
for eg: when the page loads and the user hits the enter key, nothing happens
but when the user click on the textbox (does not enter anything...)and hits
the enter key, the button fires and gives wrong results.

Please advice,
Stephen.
Jul 21 '05 #1
1 1166
Stephen,

I really would ask this in a JavasScript newsgroup.

It is possible that someone here knows your answer, however that is the same
as than someone can give you here an answer about birthcontrol.

Just my thought.

Cor
Jul 21 '05 #2

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

Similar topics

0
1102
by: Robert Mark Bram | last post by:
Hi All! I have a web application designed to allow non-english characters to be entered in through a form, held in Access and displayed on another page. Each of my pages have the following meta tag: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> My problem is this: if I go to the data entry page and enter Unicode text in Netscape, the text displays ok -- in Netscape, not in IE. Conversely, when I
7
4882
by: AnnMarie | last post by:
My JavaScript Form Validation doesn't work at all in Netscape, but it works fine in IE. I made some of the suggested changes which enabled it to work in IE. I couldn't make all the changes because then it didn't work in IE. How can I enable this javascipt form validation to work in Netscape? When I use netscape, none of the alert boxes appear. It submits the form without validating anything.
5
1490
by: D E | last post by:
Here is the problem. The following script/html code works in IE, not Netscape. The javascript portion produces the text to be dynamically written in the <A HREF="">HEREHEREHERE</A> portion... The HEREHEREHEREHERE writes fine in internet explorer, but does not appear at all in Netscape 7.1. I think it might have something to do with layers... How do I correct this? Thanks. -----------------------JAVASCRIPT...
4
1911
by: Jonas | last post by:
Hi! I have a web page where I want to intercept keypress events in an INPUT-tag and check if it is the Enter key, which calls another function that executes a search. My code runs on Netscape 7 for Windows, IE 6 for Windows and IE5.1 for Mac, but not on Netscape 7 for Mac. When I press the Enter key, the event gets caught but it does not get prevented and the search is never executed. The code looks like this:
3
2773
by: Rick | last post by:
I have an interesting problem when I run the following code in Netscape (7.02) vs. IE. This page works great in IE and all my controls bring up the validation summary dialog box if the required field is not filled out. However in Netscape NONE of the required field validations occurs at all in Netscape. The form is posting correctly because I can walk through the post back process. Any ideas why this is happening or how to fix it?
0
1017
by: Stephen | last post by:
Hi, The problem is like this, I have a textbox and a button, I wanted to disable the enter key, so as to prevent the user from hitting the enter and seeing undesirable results. I used this function function disableEnterKey() { if (window.event.keyCode == 13) window.event.keyCode = 0; }
0
910
by: polesh | last post by:
I have a regular html textbox and button. When the user presses "Enter" from the keyboard instead of clicking the "Go" button I would like the code that would have run by clicking the button work the same way when they press the Enter key. I have it working in IE, but I can't find anything useful in Netscape. I can capture events, but the problem there is that it still submits the form when the Enter key is pressed. The button I use is...
0
8256
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8189
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8694
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8356
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8497
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6118
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4193
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1500
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.