Navigate through the TAB key

2019-02-18 16:44发布

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>

3条回答
三岁会撩人
2楼-- · 2019-02-18 17:28

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.

查看更多
beautiful°
3楼-- · 2019-02-18 17:46

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

查看更多
beautiful°
4楼-- · 2019-02-18 17:49

Hi found the soultion to this by SF by self

please look to this

Tab Index on div regards

查看更多
登录 后发表回答