Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:37:26+00:00 2026-06-18T03:37:26+00:00

In FireFox, using JavaScript, when a user presses enter to select ok on an

  • 0

In FireFox, using JavaScript, when a user presses enter to select “ok” on an alert Window the onkeyup get fired. In Internet Explore this does not happen.

This HTML code demonstrates what I’m saying. Open it, type a character in the text field and select “ok” by pressing enter. Try it in FireFox and IE.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>JS example</title>
    <script type="text/javascript">
        function popup()
        {
                alert("bam")
        }
    </script>
</head>
<body>
<form>
    Each inputted character causes an alert window:<input type="text" onkeyup="popup()" />
</form>
</body>
</html>

Is this as designed or is this a problem? How do you prevent FireFox from firing again?

EDIT: I found it on bugzilla, does bugzilla have a “vote-up” or equivalent feature? This through me astray when trying to trouble shoot and I was looking for infinite loop/recursion in the function that was being called.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:37:27+00:00Added an answer on June 18, 2026 at 3:37 am

    This is because Firefox destroys its alerts much more quickly than other browsers, and it’s possible for the focus to return to your field while the Enter key is still down. It’s possible to reproduce this in other browsers by holding the Enter key down a bit longer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using javascript window.onbeforeunload function to show an alert to user whenever user tries
Using firefox 5 when i run window.getComputedStyle(document.getElementsByTagName(img)[0], null); I get the complete css file,
I am using the JavaScript select event to detect when the user selects a
I am using javascript's window.open to open a browser window on a user click
I'm using Firefox and I've been reading some forums claiming this doesn't work in
It is not possible to get iFrame ID using firefox-firebug. I want to get
Using Javascript / jQuery, how can I get automatically repeating keydown events, or equivalent,
According to this post a typical firefox user has 2-3 tabs open. How can
I am working off this test page: http://www.comehike.com/test_fb_connect.php When the user logs in using
Using JavaScript, is it possible to add a bookmark in Firefox directly, without opening

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.