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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:52:28+00:00 2026-05-18T23:52:28+00:00

My specific use case is that I have a WYSIWYG editor which is basically

  • 0

My specific use case is that I have a WYSIWYG editor which is basically an editable iframe. To the user, however, it looks like a standard-issue textarea. My problem is that I have inputs that sit before and after this editor in the (perceived) tab index and I’d like the user to be able to press tab (or the equivalent on his platform of choice) to get to the WYSIWYG editor when he’s in the previous element and shift-tab to get to it when he’s in the latter element.

I know this can be faked using the key events and checking whether or not the tab key was pressed, but I’m curious if there’s a better way.


UPDATE. treeface clarified the actual problem in the comments.

PROBLEM:

In normal case, you can use “TABINDEX” attribute of the <input> element to control that, when tabbing out of “Subject” input field (in an email form), the focus lands on “Body” input field in the e-mail. This is done simply by assigning correctly ordered values to “TABINDEX” attribute of both input fields.

The problem is that TABINDEX attribute only orders elements within the same frame. So, if “Body” input field is actually in an internal IFRAME, you can’t tab out of “Subject” in the parent frame straight into “Body” in the IFRAME using TABINDEX order.

  • 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-18T23:52:29+00:00Added an answer on May 18, 2026 at 11:52 pm

    You could probably emulate the desired behavior (probably with less issues than detecting TAB key) by onfocus/onblur events of the relevant input elements. This way you don’t CARE how the user got to the editor input, whether it’d be via TABs or clicking or some weird FireFox AddOn which allows you to jump to input element by its ID/name/# (I’m almost certain such add-on exists 🙂


    UPDATE. OP clarified the problem in the comments.

    PROBLEM:

    In normal case, you can use “TABINDEX” attribute of the <input> element to control that, when tabbing out of “Subject” input field (in an email form), the focus lands on “Body” input field in the e-mail. This is done simply by assigning correctly ordered values to “TABINDEX” attribute of both input fields.

    The problem is that TABINDEX attribute only orders elements within the same frame. So, if “Body” input field is actually in an internal IFRAME, you can’t tab out of “Subject” in the parent frame straight into “Body” in the IFRAME using TABINDEX order.

    SOLUTION:

    In the parent frame, create a new <INPUT> element. It will be invisible (e.g. via CSS or making size 1×1), will have name/id of “Body_clone”, and will have the TABINDEX attribute value which follows the TABINDEX of “Subject” field. It will also have an onFocus handler which will simply find the “Body” input element inside the IFRAME and call focus() on that element.

    You can do the same with tabbing/shift-tabbing out of IFRAME “Body” element by creating “Subject_iframe_clone” and “After-body_iframe_clone” input elements in the IFRAME which work just like “Body_clone” did.

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

Sidebar

Related Questions

No related questions found

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.