Navigate through the TAB key

2019-02-18 17:29发布

问题:

I'm working on LAMP application. In my application I'm using iframe. I want to navigate through my application via Tab key. all ok. But Tab selection not going inside to the IFRAME.

Is any one have answer for this

<html>
<body>
<div>
other codes..
</div>
    <div id="main-content1" style="position:absolute;float:none;top:80px;margin-left:170px;width: 830px;">
              <iframe onload="IfarmeOnload();"  style="display:block; margin-left:none;  margin-right:none; width: 100%; height: 100%;" src="<?php echo $home; ?>" id="rightMenu" name="rightMenu"   frameborder="0">
              </iframe>

    </div>



    </body>
</html>

回答1:

Yes! There is a spec for it, its called WAI-ARIA and its for accessibility : http://www.w3.org/WAI/PF/aria-practices/#focus_tabindex



回答2:

Hi found the soultion to this by SF by self

please look to this

Tab Index on div regards



回答3:

Look into the documentation of your browser to learn about the shortcut key that navigates between frames.

After you've done that you should be either able to navigate to the iframe and then use the Tab key for further navigation - or in case your browser has no shortcut key for the operation - you can't do anything about it.