JAVASCRIPT   73
test navigator userAgent
Guest on 6th August 2023 04:54:01 PM


  1. /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}),!1);

Raw Paste

Login or Register to edit or fork this paste. It's free.