Change tabindex for krpanoSWFObject

  • Hello,

    I have a tour embedded into a page with html content above and below the tour. I would like to use the tab key on the keyboard to tab into the pano and use the arrow keys to view the pano without using a mouse.

    Using Chrome DevTools to view the page elements I can see the krpanoSWFObject div is being assigned a tabindex="-1" which skips over the pano when tabbing through the page. changing it (in DevTools) to 0 allows me to tab into the pano, use the arrows and tab back out to the next element.

    How or where can I change that tabindex to 0?

    I've tried to change it with javascript but can't seem to get it.

    For anyone else looking to do this, here is the little code snip that I was able to use to get the tabIndex changed.

    Code
    <script type="text/javascript" lang="en-us">	
     document.getElementById("krpanoSWFObject").tabIndex = 0;	
    </script>

    Thanks

    Rich

    Edited 4 times, last by Lastwolf: Add solution (November 24, 2019 at 7:34 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!