You are not logged in.

1

Friday, November 22nd 2019, 7:18pm

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.

Source code

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


Thanks

Rich

This post has been edited 4 times, last edit by "Lastwolf" (Nov 24th 2019, 7:34pm) with the following reason: Add solution