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 7549749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:01:39+00:00 2026-05-30T10:01:39+00:00

I have a lightbox-like div which appears over pages to present scrollable content. In

  • 0

I have a lightbox-like div which appears over pages to present scrollable content. In FF, IE, and Chrome, allowing the user to scroll the lightbox with the arrow and pagedown/up keys is as simple as assigning it a tabindex and calling .focus().

In Opera, .focus() does nothing and tab/arrow/page keys will continue acting on whatever tabstop elements are in the background page.

Here’s a fiddle to illustrate the problem: http://jsfiddle.net/9W943/5/

I have seen many examples of how to focus a div, but none seem to acknowledge that the tabindex approach doesn’t work in Opera. Is there any way I can force Opera to focus the lightbox? Failing that, what’s the best workaround – listen for key events and then “manually” scroll the lightbox? (Or can I redirect the events?)

I have tried calling .click() on the lightbox, and creating+dispatching a fake click event – since keyboard scrolling works correctly after you click it – but neither worked.

Also I am very curious why it’s not standard for non-input elements to be focusable, since they can and do receive keyboard events! How do you define a focused element, if not as the element which can be interacted with via the keyboard?

  • 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-05-30T10:01:40+00:00Added an answer on May 30, 2026 at 10:01 am

    This is a known bug (internally DSK-269802) – unfortunately there is no nice workarounds that I know of :-/

    I ran into this problem yesterday myself and will give the bug a “bump” – perhaps we can fit it into some on-going development work. I’d recommend that you ignore the bug and just code as if it worked in Opera, because some day it will.

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

Sidebar

Related Questions

All lightbox scripts have the image gallery option which are built like this: <a
Is there a way to have lightbox on page load?? Say like when the
The problem: I have a UserControl (LightBox) which overlays a number of other controls
I have a Lightbox clone (colorbox), which works fine and has no real issues.
Issue I'm planning on making a lightbox-like project page. I want to have it
I have a div in fixed position that i like to make it center
i write some html with JS into a div. like this $(#picdiv).html(<a rel='lightbox' href='pic.jpg'><img
I have an URL like this: http://site.com/images/961b7d0e50f0462a8828d31bf0874a71/lightbox I need to string.format replace the GUID
I have a form on a lightbox, that form is server side validated with
Have just started using Google Chrome , and noticed in parts of our site,

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.