Advancing VoiceOver to a specified element in mobile Safari

后端 未结 1 1193
忘掉有多难
忘掉有多难 2021-01-06 10:24

I\'m having trouble figuring out how to advance VoiceOver to a specific element in Mobile Safari.

So far, I\'ve tried:

Skip         


        
相关标签:
1条回答
  • 2021-01-06 10:59

    This works on my iphone (moves keyboard focus and makes voiceover speak the content):

    <button onclick="document.getElementById('last').focus();">Move focus to bottom heading</button>
    
    <div tabindex="-1" id="last">
    <h2>dzoooong</h2>
    <p>Heaps of new content</p>
    <p>blablalbalblablabl</p>
    </div>
    

    It does not work on all elements, e.g. can't move focus directly to the h2.

    0 讨论(0)
提交回复
热议问题