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

    4 Mal editiert, zuletzt von Lastwolf (24. November 2019 um 19:34) aus folgendem Grund: Add solution

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!