Preventing tab to cycle through address bar

前端 未结 8 1489
一生所求
一生所求 2021-02-20 06:54

I realize this is probably an accessibility issue that may best be left alone, but I\'d like to figure out if it possible to prevent the tab from visiting the address bar in the

8条回答
  •  囚心锁ツ
    2021-02-20 07:52

    Salinan solution worked for me Put this in the start of your html page:

    
    

    and this at the end of your html page.:

    
    

    foucsFirstElement() :

    foucsFirstElement() {
      document.getElementById("prevent-outside-tab").focus();
    },
    

提交回复
热议问题